Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CreateSchema is the SQL statement used to create a schema in PostgreSQL. // // We use fmt rather than query arguments because sanitization // does not expect schema names to be passed as arguments. CreateSchema = "CREATE SCHEMA IF NOT EXISTS %s;" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func (*Default) DBSchema ¶
DBSchema returns a database connection for the specified schema. It smartly caches and reuses connections for any given schema name.
If the `create` parameter is true, and no connection exists for the specified schema, it will create the schema in the database before returning the connection.
Click to show internal directories.
Click to hide internal directories.