Documentation ¶ Index ¶ func CreateTestDB(user, password, dbName, host string, port uint16) func() func MakeUrl(user, password, dbName, host string, port uint16, timeZone string, ...) string type DB func Connect(user, password, dbName, host string, ...) *DB func (db *DB) Transaction(txFunc TxFunc) (err error) type TxFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CreateTestDB ¶ func CreateTestDB(user, password, dbName, host string, port uint16) func() func MakeUrl ¶ func MakeUrl(user, password, dbName, host string, port uint16, timeZone string, withSchema bool) string Types ¶ type DB ¶ type DB struct { *sqlx.DB } func Connect ¶ func Connect(user, password, dbName, host string, port, maxOpenConns, maxIdleConns, connMaxLifeTime, connMaxIdleTime uint16, timeZone string, logMode bool) *DB func (*DB) Transaction ¶ func (db *DB) Transaction(txFunc TxFunc) (err error) type TxFunc ¶ type TxFunc func(tx *sqlx.Tx) error Source Files ¶ View all Source files connect.go db.go hooks.go Click to show internal directories. Click to hide internal directories.