Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupFunc ¶
type CleanupFunc func()
CleanupFunc deletes the schema and all database objects.
func NewPostgresSchema ¶
func NewPostgresSchema(t *testing.T, sqlFiles []string, opts ...Option) (*pgx.Conn, CleanupFunc)
NewPostgresSchema opens a connection with search_path set to a randomly named, new schema and loads all sqlFiles.
func NewPostgresSchemaString ¶
func NewPostgresSchemaString(t *testing.T, sql string, opts ...Option) (*pgx.Conn, CleanupFunc)
NewPostgresSchemaString opens a connection with search_path set to a randomly named, new schema and loads the sql string.
Click to show internal directories.
Click to hide internal directories.