Runs queries on a single sqlite database connection.
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.
Real database connection from a connection pool used to perform queries.
Database driver used by connection.
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 current query runner.
Mode in which query runner executes. Used for replication. If replication is not setup its value is ignored.
Sql-s stored if "sql in memory" mode is enabled.
Indicates if special query runner mode in which sql queries won't be executed is enabled.
Builds a query for create column.
Changes a column in the table. Changed column looses all its keys in the db.
Removes all tables from the currently connected 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 database.
Creates a new primary key.
Creates a new table schema.
Creates a new table.
Builds create table sql.
Disables special query runner mode in which sql queries won't be executed started by calling enableSqlMemory() method.
Previously memorized sql will be flushed.
Builds drop index sql.
Drops a primary key.
Drops table schema.
Drops the table.
Builds drop table sql.
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.
Executes sql used special for schema build.
Gets table from previously loaded tables, otherwise loads it from database.
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.
Loads given table's data from the database.
Loads all tables (with given names) from the database.
Checks if column with the given name exist in the given table.
Checks if database with the given name exist.
Checks if schema with the given name exist.
Checks if table with the given name exist in the database.
Checks if at least one of column properties was changed. Does not checks column type, length and autoincrement, because these properties changes separately.
Loads all tables (with given names) from the database and creates a Table from them.
Executes a given SQL query.
Releases used database connection. We just clear loaded tables and sql in memory, because sqlite do not support multiple connections thus query runners.
Renames the given table.
Rollbacks transaction. Error will be thrown if transaction was not started.
Returns raw data stream.
Generated using TypeDoc