Documentation
¶
Index ¶
- func NewPostgresBackend(host string, port int, user, password, database string, opts ...option) *postgresBackend
- func NewPostgresBackendWithDb(db *sql.DB, opts ...option) *postgresBackend
- func SQLReplacer(src string) string
- func WithApplyMigrations(applyMigrations bool) option
- func WithBackendOptions(opts ...backend.BackendOption) option
- func WithPostgreSQLOptions(f func(db *sql.DB)) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresBackend ¶
func NewPostgresBackendWithDb ¶ added in v1.0.1
func SQLReplacer ¶
func WithApplyMigrations ¶
func WithApplyMigrations(applyMigrations bool) option
WithApplyMigrations automatically applies database migrations on startup.
func WithBackendOptions ¶
func WithBackendOptions(opts ...backend.BackendOption) option
WithBackendOptions allows to pass generic backend options.
func WithPostgreSQLOptions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.