Documentation
¶
Index ¶
- func EventuallyWithTf(t *testing.T, fn func(c *assert.CollectT, saveErr func(err any)), ...)
- func GetRFC3339Time(t *testing.T, timeString string) time.Time
- func NewLogger(t testing.TB) *slog.Logger
- type NoopMigrator
- func (m *NoopMigrator) Hash() (string, error)
- func (m *NoopMigrator) Migrate(ctx context.Context, db *sql.DB, templateConf pgtestdb.Config) error
- func (*NoopMigrator) Prepare(_ context.Context, _ *sql.DB, _ pgtestdb.Config) error
- func (*NoopMigrator) Verify(_ context.Context, _ *sql.DB, _ pgtestdb.Config) error
- type TestDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventuallyWithTf ¶
Types ¶
type NoopMigrator ¶
type NoopMigrator struct{}
NoopMigrator is a migrator for pgtestdb.
func (*NoopMigrator) Hash ¶
func (m *NoopMigrator) Hash() (string, error)
Hash returns the md5 hash of the schema file.
func (*NoopMigrator) Migrate ¶
func (m *NoopMigrator) Migrate( ctx context.Context, db *sql.DB, templateConf pgtestdb.Config, ) error
Migrate shells out to the `atlas` CLI program to migrate the template database.
atlas schema apply --auto-approve --url $DB --to file://$schemaFilePath
Click to show internal directories.
Click to hide internal directories.