All of the "when.js" promise components needed in this module.
Other dependencies, including the pg
library,
which needs to be added as a dependency to the project
using this database.
All other local project modules needed in this scope.
Constructor for the PostgreSQL Client
Get a raw connection, called by the pool
whenever a new
connection needs to be added to the pool.
In PostgreSQL, we need to do a version check to do some feature checking on the database.
Extends the standard sql grammar.
The keyword identifier wrapper format.
Compiles a truncate query.
Compiles an insert
query, allowing for multiple
inserts using a single query statement.
If there are any "where" clauses, we need to omit any bindings that may have been associated with them.
Handles the response
Grammar for the schema builder.
The possible column modifiers.
Compile the query to determine if a table exists.
Compile the query to determine if a column exists in a table.
Compile a create table command.
Compile a primary key command.
Compile a unique key command.
Compile a plain index key command.
Compile a drop column command.
Compile a drop primary key command.
Compile a drop unique key command.
Compile a drop foreign key command.
Compile a rename table command.
Compile a rename column command.
Compile a comment command.
Compile any additional postgres specific items.
Create the column definition for a integer type.
Create the column definition for a tiny integer type.
Create the column definition for a float type.
Create the column definition for a decimal type.
Create the column definition for a boolean type.
Create the column definition for an enum type. Using method 2 here: http://stackoverflow.com/questions/10923213/postgres-enum-data-type-or-check-constraint
Create the column definition for a date-time type.
Create the column definition for a timestamp type.
Create the column definition for a bit type.
Create the column definition for a binary type.
Create the column definition for a uuid type.
Create the column definition for a json type, checking whether the json type is supported - falling back to "text" if it's not.
Get the SQL for an auto-increment column modifier.
PostgreSQL