Versions in this module Expand all Collapse all v1 v1.15.0 Sep 9, 2024 Changes in this version + 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 string + const ContainerTypeMysql + const ContainerTypePostgres + const ContainerTypeRedis + const ContainerTypeSqlite + const ContainerTypeSqlserver + type MysqlImpl struct + func NewMysqlImpl(database, username, password string) *MysqlImpl + func (receiver *MysqlImpl) Build() error + func (receiver *MysqlImpl) Config() testing.DatabaseConfig + func (receiver *MysqlImpl) Fresh() error + func (receiver *MysqlImpl) Image(image testing.Image) + func (receiver *MysqlImpl) Name() orm.Driver + func (receiver *MysqlImpl) Stop() error + type PostgresImpl struct + func NewPostgresImpl(database, username, password string) *PostgresImpl + func (receiver *PostgresImpl) Build() error + func (receiver *PostgresImpl) Config() testing.DatabaseConfig + func (receiver *PostgresImpl) Fresh() error + func (receiver *PostgresImpl) Image(image testing.Image) + func (receiver *PostgresImpl) Name() orm.Driver + func (receiver *PostgresImpl) Stop() error + type Redis struct + func NewRedis() *Redis + func (receiver *Redis) Build() error + func (receiver *Redis) Config() RedisConfig + func (receiver *Redis) Stop() error + type RedisConfig struct + Port int + type SqliteImpl struct + func NewSqliteImpl(database string) *SqliteImpl + func (receiver *SqliteImpl) Build() error + func (receiver *SqliteImpl) Config() testing.DatabaseConfig + func (receiver *SqliteImpl) Fresh() error + func (receiver *SqliteImpl) Image(image testing.Image) + func (receiver *SqliteImpl) Name() orm.Driver + func (receiver *SqliteImpl) Stop() error + type SqlserverImpl struct + func NewSqlserverImpl(database, username, password string) *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