Versions in this module Expand all Collapse all v0 v0.0.3 Aug 9, 2024 Changes in this version type Config + AlwaysCleanUp bool v0.0.2 Jul 16, 2024 Changes in this version + const DefaultRoleCapabilities + const DefaultRolePassword + const DefaultRoleUsername + const TestPassword + const TestUser + func New(t TB, conf Config, migrator Migrator) *sql.DB + type Config struct + Database string + DriverName string + Host string + Options string + Password string + Port string + TestRole *Role + User string + func Custom(t TB, conf Config, migrator Migrator) *Config + func (c Config) Connect() (*sql.DB, error) + func (c Config) URL() string + type Migrator interface + Hash func() (string, error) + Migrate func(context.Context, *sql.DB, Config) error + Prepare func(context.Context, *sql.DB, Config) error + Verify func(context.Context, *sql.DB, Config) error + type NoopMigrator struct + func (NoopMigrator) Hash() (string, error) + func (NoopMigrator) Migrate(_ context.Context, _ *sql.DB, _ Config) error + func (NoopMigrator) Prepare(_ context.Context, _ *sql.DB, _ Config) error + func (NoopMigrator) Verify(_ context.Context, _ *sql.DB, _ Config) error + type Role struct + Capabilities string + Password string + Username string + func DefaultRole() Role + type TB interface + Cleanup func(func()) + Failed func() bool + Fatalf func(format string, args ...any) + Helper func() + Logf func(format string, args ...any)