Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestMySQLHost = "TEST_MYSQL_HOST" TestMySQLPort = "TEST_MYSQL_PORT" TestMySQLDatabase = "TEST_MYSQL_DATABASE" TestMySQLUsername = "TEST_MYSQL_USERNAME" TestMySQLPassword = "TEST_MYSQL_PASSWORD" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestDBOption ¶
type TestDBOption func(*options)
func DBDatabase ¶
func DBDatabase(database string) TestDBOption
func DBHost ¶
func DBHost(host string) TestDBOption
func DBPassword ¶
func DBPassword(password string) TestDBOption
func DBPort ¶
func DBPort(port int) TestDBOption
func DBUser ¶
func DBUser(user string) TestDBOption
type TestMySQLDB ¶
type TestMySQLDB struct {
// contains filtered or unexported fields
}
func NewTestMySQLDB ¶
func NewTestMySQLDB(opts ...TestDBOption) *TestMySQLDB
func (*TestMySQLDB) Drop ¶
func (db *TestMySQLDB) Drop() error
func (*TestMySQLDB) Truncate ¶
func (db *TestMySQLDB) Truncate(truncateStmts ...string) error
Click to show internal directories.
Click to hide internal directories.