Documentation ¶
Overview ¶
Package database provides low level operations with database.
Package database provides low level operations with database.
Index ¶
Constants ¶
View Source
const ( DefaultMigrationsDir = "migrations" MigrationsTable = "schema_migrations" SQLiteDriver = "sqlite3" )
constants for database package.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetDirFunc ¶
AssetDirFunc returns names files in migrations directory.
type BinDataConfig ¶
type BinDataConfig struct { AssetDirFunc AssetDirFunc Dir string AssetFunc bin.AssetFunc }
BinDataConfig configuration for golang-migrate bindata migrating.
type Database ¶
Database object capable of interacting with Database.
func NewConnector ¶
func NewConnector(cfg *entity.DatabaseConfig, binDataConfig *BinDataConfig, log *logger.Zerolog) (*Database, error)
NewConnector creates a new Database.
Click to show internal directories.
Click to hide internal directories.