Documentation ¶ Index ¶ func IsInvalidCatalog(err error) bool func New(creds map[string][]byte, database string) xsql.DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsInvalidCatalog ¶ added in v0.2.0 func IsInvalidCatalog(err error) bool IsInvalidCatalog returns true if passed a pq error indicating that the database does not exist. func New ¶ func New(creds map[string][]byte, database string) xsql.DB New returns a new PostgreSQL database client. The default database name is an empty string. The underlying pq library will default to either using the value of PGDATABASE, or if unset, the hardcoded string 'postgres'. Types ¶ This section is empty. Source Files ¶ View all Source files postgresql.go Click to show internal directories. Click to hide internal directories.