Documentation
¶
Overview ¶
Package stdpgtest provides testing against a postgresql database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PgxTestDBConnString ¶ added in v0.0.2
PgxTestDBConnString will use the pgtestdb package to migrate, creates a isolated database and returns the connection string to that database..
Types ¶
type SnapshotMigrater ¶
type SnapshotMigrater[T interface { ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) }] string
SnapshotMigrater loads a migration from a postgres dump file.
func (SnapshotMigrater[T]) Hash ¶
func (m SnapshotMigrater[T]) Hash() (string, error)
Hash implements the migrater interface.
Click to show internal directories.
Click to hide internal directories.