Documentation
¶
Overview ¶
Package testpg provides isolated PostgreSQL schemas for tests and the system-test server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseDSN ¶
BaseDSN returns SYNAPS3_POSTGRES_TEST_DSN when set; otherwise it starts one PostgreSQL container per process.
func Close ¶
func Close() error
Close terminates only the container created by this process. Call after m.Run.
func CreateSchema ¶
CreateSchema creates an empty private schema in the database named by dsn and returns a DSN whose connections use it. Close every connection to the returned DSN before calling drop.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.