Documentation ¶
Overview ¶
Package pgtest provides utilities for creating and destroying test databases in PostgreSQL. It's used in eventdb's Store and E2E tests. The code is based on and largely identical to chain's pgtest package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultURL is the default URL used for accessing the postgres server in open() DefaultURL = "postgres://localhost/postgres?sslmode=disable" // DefaultSchema is a SQL query that's executed when a new database is // created in NewDB. You can put SQL in here that you want to be executed // before every test. DefaultSchema = ` -- this is slow, so only do it once per db CREATE EXTENSION IF NOT EXISTS postgis; ` )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.