Broadcaster used on this query runner to broadcast entity events.
Connection used by this query runner.
Stores temporarily user data. Useful for sharing data with subscribers.
Indicates if connection for this query runner is released. Once its released, query runner cannot run queries anymore.
Indicates if transaction is in progress.
All synchronized tables in the database.
Entity manager working only with this query runner.
Adds a new column.
Adds new columns.
Changes a column in the table.
Changes columns in the table.
Removes all tables from the currently connected database. Be careful with using this method and avoid using it in production or migrations (because it can clear all your database).
Flushes all memorized sqls.
Clears all table contents. Note: this operation uses SQL's TRUNCATE query which cannot be reverted in transactions.
Commits transaction. Error will be thrown if transaction was not started.
Creates/uses database connection from the connection pool to perform further operations. Returns obtained database connection.
Creates a new check constraint.
Creates new check constraints.
Creates a new database.
Creates a new foreign key.
Creates new foreign keys.
Creates a new index.
Creates new indices.
Creates a new primary key.
Creates a new table schema.
Creates a new table.
Creates a new unique constraint.
Creates new unique constraints.
Disables special query runner mode in which sql queries won't be executed started by calling enableSqlMemory() method.
Previously memorized sql will be flushed.
Drops a check constraint.
Drops check constraints.
Drops a column in the table.
Drops columns in the table.
Drops database.
Drops a foreign key.
Drops foreign keys.
Drops an index.
Drops indices.
Drops a primary key.
Drops table schema. For SqlServer can accept schema path (e.g. 'dbName.schemaName') as parameter. If schema path passed, it will drop schema in specified database.
Drops a table.
Drops an unique constraint.
Drops unique constraints.
Enables special query runner mode in which sql queries won't be executed, instead they will be memorized into a special variable inside query runner. You can get memorized sql using getMemorySql() method.
Executes down sql queries.
Executes up sql queries.
Returns all available database names including system databases.
Gets sql stored in the memory. Parameters in the sql are already replaced.
Returns all available schema names including system schemas. If database parameter specified, returns schemas of that database. Useful for SQLServer and Postgres only.
Loads a table by a given name from the database.
Loads all tables from the database and returns them.
todo: make tableNames optional
Checks if a column exist in the table.
Checks if a database with the given name exist.
Checks if a schema with the given name exist.
Checks if a table with the given name exist.
Executes a given SQL query and returns raw database results.
Releases used database connection. You cannot use query runner methods after connection is released.
Renames a column.
Renames a table.
Ends transaction. Error will be thrown if transaction was not started.
Starts transaction.
Returns raw data stream.
Updates composite primary keys.
Generated using TypeDoc
Runs queries on a single database connection.