Versions in this module Expand all Collapse all v1 v1.0.0 Oct 18, 2023 Changes in this version + func LoadScenario(db *sql.DB, filename string) error + func RunMigrations(db *sql.DB, migrationDir string) error + type Option func(*PostgresContainer) + func WithContainerName(containerName string) Option + func WithDBName(dbName string) Option + func WithPassword(password string) Option + func WithPort(port uint16) Option + func WithUser(user string) Option + func WithVersion(version string) Option + type PostgresContainer struct + func StartPostgresContainer(ctx context.Context, options ...Option) (*PostgresContainer, error) + func (c *PostgresContainer) ConnectionString() string + func (c *PostgresContainer) Shutdown(ctx context.Context) error + type Suite struct + DataSourceName string + DriverName string + func (s *Suite) DB() *sqlx.DB + func (s *Suite) SetupSuite() + func (s *Suite) TearDownSuite() + func (s *Suite) TearDownTest() + func (s *Suite) Tx() *sqlx.Tx