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.
Master database used to perform all write queries.
todo: probably move into query runner.
Indicates if replication is enabled.
Orm has special columns and we need to know what database column types should be for those types. Column types are driver dependant.
Connection options.
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 database name, schema name and table name. E.g. "myDB"."mySchema"."myTable"
Performs connection to the database. Depend on driver type it may create a connection pool.
Normalizes "default" value of the column.
Creates generated map of values generated or returned by database after INSERT query.
Creates an escaped parameter.
Creates a query runner used for common queries.
Synchronizes database schema (creates tables, indices, etc).
Closes connection with database and releases all resources.
Escapes a table name, column name or an alias.
todo: probably escape should be able to handle dots in the names and automatically escape them
Replaces parameters in the given sql with special escaping character and an array of parameter names to be passed to a query.
Differentiate columns of this table and columns from the given column metadatas columns and returns only changed.
Calculates column length taking into account the default length values.
Returns true if driver supports RETURNING / OUTPUT statement.
Returns true if driver supports uuid values generation on its own.
Normalizes "default" value of the column.
Normalizes "isUnique" value of the column.
Transforms type of the given column to a database column type.
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.
Prepares given value to a value to be persisted, based on its column type and metadata.
Generated using TypeDoc
Driver organizes TypeORM communication with specific database management system.