Documentation
¶
Index ¶
- func NewInMemoryBackend(opts ...option) *sqliteBackend
- func NewSqliteBackend(path string, opts ...option) *sqliteBackend
- func NewSqliteBackendWithDB(pool *sql.DB, opts ...option) *sqliteBackend
- func WithApplyMigrations(applyMigrations bool) option
- func WithBackendOptions(opts ...backend.BackendOption) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemoryBackend ¶
func NewInMemoryBackend(opts ...option) *sqliteBackend
func NewSqliteBackend ¶
func NewSqliteBackend(path string, opts ...option) *sqliteBackend
func NewSqliteBackendWithDB ¶
NewSqliteBackendWithDB leaves connection configuration and ownership with the caller.
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.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package db owns sqlite connection setup and the backend's immutable migration history.
|
Package db owns sqlite connection setup and the backend's immutable migration history. |
Click to show internal directories.
Click to hide internal directories.