Documentation ¶ Index ¶ type Conn func Connect(database string) (*Conn, error) func (tmp *Conn) Close() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { *pgx.Conn SchemaName string } func Connect ¶ func Connect(database string) (*Conn, error) Connect establishes a new pg connection to the provided database name, creates a new random schema and sets the search path to that schema. When you close the connection, the schema is dropped, making the schema ephemeral. func (*Conn) Close ¶ func (tmp *Conn) Close() error Close drops the associated schema and then closes the connection. Source Files ¶ View all Source files connect.go rand.go Click to show internal directories. Click to hide internal directories.