package
1.0.1
Repository: https://github.com/ibrt/golang-inject-sqlite.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ApplyMigrations applies the given migrations.
Get extracts the SQLite from context, panics if not found.
GetConfig extracts the *Config from context, panics if not found.
GetCtx extracts the SQLite from context and wraps it as ContextSQLite, panics if not found.
GetDB extracts the SQLite from context as *sql.DB, panics if not found.
Initializer is a SQLite initializer.
NewConfigDBSpec initializes a new *ConfigDBSpec.
NewConfigMigrations initializes a new *ConfigMigrations.
NewConfigSingletonInjector always inject the given *Config.
NewDefaultConfigDBSpec initializes a new *ConfigDBSpec with the default PRAGMAs.
RevertMigrations reverts the given migrations.

# Constants

AllMigrations means apply/revert all migrations.

# Variables

DefaultPragmas provides a default, sane set of PRAGMAs for opening SQLite databases.

# Structs

Config describes the configuration for SQLite.
ConfigDBSpec describes part of the configuration for SQLite.
ConfigMigrations describes part of the configuration for SQLite.

# Interfaces

ContextSQLite describes a SQLite with a cached context.
SQLite describes the sqlite module (a subset of *sql.DB).