Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶ added in v1.14.0
type Database struct { Mysql *Mysql Mysql1 *Mysql Postgresql *Postgresql Sqlserver *Sqlserver Sqlite *Sqlite }
func InitDatabase ¶ added in v1.14.0
type Mysql ¶ added in v1.14.0
type Mysql struct {
// contains filtered or unexported fields
}
func (*Mysql) Config ¶ added in v1.14.0
func (receiver *Mysql) Config() testing.DatabaseConfig
type Postgresql ¶ added in v1.14.0
type Postgresql struct {
// contains filtered or unexported fields
}
func NewPostgresql ¶ added in v1.14.0
func NewPostgresql(database, username, password string) *Postgresql
func (*Postgresql) Build ¶ added in v1.14.0
func (receiver *Postgresql) Build() error
func (*Postgresql) Config ¶ added in v1.14.0
func (receiver *Postgresql) Config() testing.DatabaseConfig
func (*Postgresql) Fresh ¶ added in v1.14.0
func (receiver *Postgresql) Fresh() error
func (*Postgresql) Image ¶ added in v1.14.0
func (receiver *Postgresql) Image(image testing.Image)
func (*Postgresql) Name ¶ added in v1.14.0
func (receiver *Postgresql) Name() orm.Driver
func (*Postgresql) Stop ¶ added in v1.14.0
func (receiver *Postgresql) Stop() error
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) Config ¶ added in v1.14.0
func (receiver *Redis) Config() RedisConfig
type RedisConfig ¶ added in v1.14.0
type RedisConfig struct {
Port int
}
type Sqlite ¶ added in v1.14.0
type Sqlite struct {
// contains filtered or unexported fields
}
func (*Sqlite) Config ¶ added in v1.14.0
func (receiver *Sqlite) Config() testing.DatabaseConfig
type Sqlserver ¶ added in v1.14.0
type Sqlserver struct {
// contains filtered or unexported fields
}
func NewSqlserver ¶ added in v1.14.0
func (*Sqlserver) Config ¶ added in v1.14.0
func (receiver *Sqlserver) Config() testing.DatabaseConfig
Click to show internal directories.
Click to hide internal directories.