import { type QueryRunner } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";
Runs queries on a single database connection.
Properties
Methods
Creates/uses database connection from the connection pool to perform further operations. Returns obtained database connection.
Releases used database connection. You cannot use query runner methods after connection is released.
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).
Returns all available schema names including system schemas. If database parameter specified, returns schemas of that database. Useful for SQLServer and Postgres only.
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.
Creates a new table.
Drops a table.
Renames a column.
Changes a column in the table.
Changes columns in the table.
Creates a new exclusion constraint.
Creates new exclusion constraints.
Drops a exclusion constraint.
Drops exclusion constraints.
Clears all table contents. Note: this operation uses SQL's TRUNCATE query which cannot be reverted in transactions.
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.
Disables special query runner mode in which sql queries won't be executed started by calling enableSqlMemory() method.
Previously memorized sql will be flushed.