Documentation ¶
Index ¶
- func Database(containerType ContainerType, num int) []testing.DatabaseDriver
- func Mysql() testing.DatabaseDriver
- func Mysqls(num int) []testing.DatabaseDriver
- func Postgres() testing.DatabaseDriver
- func Postgreses(num int) []testing.DatabaseDriver
- func Sqlite() testing.DatabaseDriver
- func Sqlites(num int) []testing.DatabaseDriver
- func Sqlserver() testing.DatabaseDriver
- func Sqlservers(num int) []testing.DatabaseDriver
- func Stop() error
- type ContainerType
- type MysqlImpl
- type PostgresImpl
- type Redis
- type RedisConfig
- type SqliteImpl
- type SqlserverImpl
- func (receiver *SqlserverImpl) Build() error
- func (receiver *SqlserverImpl) Config() testing.DatabaseConfig
- func (receiver *SqlserverImpl) Fresh() error
- func (receiver *SqlserverImpl) Image(image testing.Image)
- func (receiver *SqlserverImpl) Name() orm.Driver
- func (receiver *SqlserverImpl) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Database ¶
func Database(containerType ContainerType, num int) []testing.DatabaseDriver
func Mysql ¶
func Mysql() testing.DatabaseDriver
func Mysqls ¶
func Mysqls(num int) []testing.DatabaseDriver
func Postgres ¶
func Postgres() testing.DatabaseDriver
func Postgreses ¶
func Postgreses(num int) []testing.DatabaseDriver
func Sqlite ¶
func Sqlite() testing.DatabaseDriver
func Sqlites ¶
func Sqlites(num int) []testing.DatabaseDriver
func Sqlserver ¶
func Sqlserver() testing.DatabaseDriver
func Sqlservers ¶
func Sqlservers(num int) []testing.DatabaseDriver
Types ¶
type ContainerType ¶
type ContainerType string
const ( ContainerTypeMysql ContainerType = "mysql" ContainerTypePostgres ContainerType = "postgres" ContainerTypeSqlite ContainerType = "sqlite" ContainerTypeSqlserver ContainerType = "sqlserver" ContainerTypeRedis ContainerType = "redis" )
type MysqlImpl ¶
type MysqlImpl struct {
// contains filtered or unexported fields
}
func NewMysqlImpl ¶
func (*MysqlImpl) Config ¶
func (receiver *MysqlImpl) Config() testing.DatabaseConfig
type PostgresImpl ¶
type PostgresImpl struct {
// contains filtered or unexported fields
}
func NewPostgresImpl ¶
func NewPostgresImpl(database, username, password string) *PostgresImpl
func (*PostgresImpl) Build ¶
func (receiver *PostgresImpl) Build() error
func (*PostgresImpl) Config ¶
func (receiver *PostgresImpl) Config() testing.DatabaseConfig
func (*PostgresImpl) Fresh ¶
func (receiver *PostgresImpl) Fresh() error
func (*PostgresImpl) Image ¶
func (receiver *PostgresImpl) Image(image testing.Image)
func (*PostgresImpl) Name ¶
func (receiver *PostgresImpl) Name() orm.Driver
func (*PostgresImpl) Stop ¶
func (receiver *PostgresImpl) Stop() error
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) Config ¶
func (receiver *Redis) Config() RedisConfig
type RedisConfig ¶
type RedisConfig struct {
Port int
}
type SqliteImpl ¶
type SqliteImpl struct {
// contains filtered or unexported fields
}
func NewSqliteImpl ¶
func NewSqliteImpl(database string) *SqliteImpl
func (*SqliteImpl) Build ¶
func (receiver *SqliteImpl) Build() error
func (*SqliteImpl) Config ¶
func (receiver *SqliteImpl) Config() testing.DatabaseConfig
func (*SqliteImpl) Fresh ¶
func (receiver *SqliteImpl) Fresh() error
func (*SqliteImpl) Image ¶
func (receiver *SqliteImpl) Image(image testing.Image)
func (*SqliteImpl) Name ¶
func (receiver *SqliteImpl) Name() orm.Driver
func (*SqliteImpl) Stop ¶
func (receiver *SqliteImpl) Stop() error
type SqlserverImpl ¶
type SqlserverImpl struct {
// contains filtered or unexported fields
}
func NewSqlserverImpl ¶
func NewSqlserverImpl(database, username, password string) *SqlserverImpl
func (*SqlserverImpl) Build ¶
func (receiver *SqlserverImpl) Build() error
func (*SqlserverImpl) Config ¶
func (receiver *SqlserverImpl) Config() testing.DatabaseConfig
func (*SqlserverImpl) Fresh ¶
func (receiver *SqlserverImpl) Fresh() error
func (*SqlserverImpl) Image ¶
func (receiver *SqlserverImpl) Image(image testing.Image)
func (*SqlserverImpl) Name ¶
func (receiver *SqlserverImpl) Name() orm.Driver
func (*SqlserverImpl) Stop ¶
func (receiver *SqlserverImpl) Stop() error
Click to show internal directories.
Click to hide internal directories.