Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsolatedPostgres ¶
func IsolatedPostgres(ctx context.Context, dsn, prefix string) (string, func(context.Context) error, error)
IsolatedPostgres creates a schema-scoped DSN and a cleanup function for an integration test.
func PostgresURL ¶
PostgresURL returns the integration database URL or skips the calling test when database integration was not requested.
func RunPostgresTests ¶
RunPostgresTests supplies an ephemeral PostgreSQL database to a package test suite when MOLEJO_TESTCONTAINERS is enabled. An explicit database URL always takes precedence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.