Documentation ¶
Overview ¶
Package mysqltest provides standalone test instances of mysql sutable for use in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fatalf ¶
type Fatalf interface {
Fatalf(format string, args ...interface{})
}
Fatalf is satisfied by testing.T or testing.B.
type Server ¶
type Server struct { Port int DataDir string Socket string T Fatalf // contains filtered or unexported fields }
Server is a unique instance of a mysqld.
func NewServerDB ¶
NewServerDB creates a new server, starts it, creates the named DB, and returns both.
func NewStartedServer ¶
NewStartedServer creates a new server starts it.
func (*Server) DSN ¶
DSN for the mysql server, suitable for use with sql.Open. The suffix is in the form "dbname?param=value".
Click to show internal directories.
Click to hide internal directories.