Documentation ¶
Index ¶
- func InitMySQL(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)
- func InitPostgres(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)
- func InitSQLite(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)
- type SQLConnector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMySQL ¶
func InitMySQL(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)
InitMySQL sets up squirrel and creates a MySQL connection
func InitPostgres ¶
func InitPostgres(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)
InitPostgres sets up squirrel and creates a Postgres connection
func InitSQLite ¶
func InitSQLite(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)
InitSQLite sets up squirrel and creates a SQLite connection
Types ¶
Click to show internal directories.
Click to hide internal directories.