Organizes communication with PostgreSQL DBMS.
We store all created query runners because we need to release them.
Connection used by driver.
Master database used to perform all write queries.
Indicates if replication is enabled.
Pool for master database.
Postgres underlying library.
Pool for slave databases. Used in replication.
Gets list of spatial column data types.
Gets list of supported column data types by a driver.
Indicates if tree tables are supported by this driver.
Gets list of column data types that support length by a driver.
Gets list of column data types that support precision by a driver.
Gets list of column data types that support scale by a driver.
Makes any action after connection (e.g. create extensions in Postgres driver).
Build full table name with schema name and table name. E.g. "mySchema"."myTable"
Closes connection pool.
Performs connection to the database. Based on pooling options, it can either create connection immediately, either create a pool and create connection when needed.
Creates column type definition including length, precision and scale
Creates an escaped parameter.
Creates a query runner used to execute database queries.
Creates a schema builder used to build and sync a schema.
Closes connection with database.
Escapes a column name.
Executes given query.
Returns default column lengths, which is required on column creation.
Returns true if driver supports RETURNING / OUTPUT statement.
Returns true if driver supports uuid values generation on its own.
If driver dependency is not given explicitly, then try to load it via "require".
Loads postgres query stream package.
Normalizes "default" value of the column.
Normalizes "isUnique" value of the column.
Creates a database type from a given column metadata.
Obtains a new database connection to a master server. Used for replication. If replication is not setup then returns default connection's database connection.
Obtains a new database connection to a slave server. Used for replication. If replication is not setup then returns master (default) connection's database connection.
Prepares given value to a value to be persisted, based on its column type or metadata.
Prepares given value to a value to be persisted, based on its column type and metadata.
Default values of length, precision and scale depends on column data type. Used in the cases when length/precision/scale is not specified by user.
Orm has special columns and we need to know what database column types should be for those types. Column types are driver dependant.
Generated using TypeDoc