Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgres ¶
NewPostgres starts a Postgres container and returns a connected drel Engine. The container is torn down when the test completes via t.Cleanup.
Types ¶
type Option ¶
type Option func(*config)
Option configures NewPostgres.
func WithMigrations ¶
WithMigrations runs all pending migrations from dir after the container starts.
Click to show internal directories.
Click to hide internal directories.