Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogLevelInfo = LogLevel(logger.Info) LogLevelError = LogLevel(logger.Error) DBMSMySQL = DBMS("mysql") DBMSPostgreSQL = DBMS("postgres") )
View Source
const ( MysqlDSN = "%s:%s@(%s:%s)/%s?charset=utf8mb4&parseTime=true" PostgresDSN = "host=%s user=%s password=%s dbname=%s port=%s sslmode=disable" ErrStrUnkownDBMS = "unknown DBMS: %s" )
View Source
const TestDriver = "txdb"
Variables ¶
This section is empty.
Functions ¶
func InitTest ¶
func InitTest(c TestConfig) error
Types ¶
type Connection ¶
type TestConfig ¶
type TestConfig struct { DBMS DBMS Conn Connection }
Click to show internal directories.
Click to hide internal directories.