package
Version:
v0.3.2
Opens a new window with list of versions in this module.
Published: Jun 3, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewPostgres starts a Postgres container and returns a connected drel Engine.
The container is torn down when the test completes via t.Cleanup.
type Option func(*config)
Option configures NewPostgres.
WithMigrations runs all pending migrations from dir after the container starts.
WithSeed runs a seed function against the engine after the container starts
(and after any migrations if WithMigrations is also provided).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.