Private
Readonly
#internalsReadonly
dialectPrivate
#whereProtected
optionsProtected
sequelizeOptional
_options: CreateDatabaseQueryOptionsOptional
options: CreateSchemaQueryOptionsGenerates an SQL query that drops a foreign key constraint.
The table or associated model.
The name of the foreign key constraint.
Use removeConstraintQuery instead.
Optional
options: DropSchemaQueryOptionsOptional
options: DropTableQueryOptionsEscapes a value (e.g. a string, number or date) as an SQL value (as opposed to an identifier).
The value to escape
The options to use when escaping the value
Escapes an array of values (e.g. strings, numbers or dates) as an SQL List of values.
The list of values to escape
Optional
options: EscapeOptionsconst values = [1, 2, 3];
queryGenerator.escapeList([1, 2, 3]); // '(1, 2, 3)'
Optional
options: { Optional
delimiter?: stringOptional
schema?: stringOptional
options: EscapeOptionsThe goal of this method is to execute the equivalent of json_unquote for the current dialect.
Generates an SQL query that returns all foreign keys of a table or the foreign key constraint of a given column.
The table or associated model.
Optional
_columnName: stringThe name of the column. Not supported by SQLite.
The generated SQL query.
Use showConstraintsQuery instead.
⚠️ This is not an identifier, it's a raw SQL expression. It will be inlined in the query.
The JSON path, where each item is one level of the path
Whether the result should be unquoted (depending on dialect: ->> and #>> operators, json_unquote function). Defaults to false
.
Optional
_options: ListDatabasesQueryOptionsOptional
_options: ListSchemasQueryOptionsOptional
_options: ListTablesQueryOptionsQuote table name with optional alias and schema attribution
table string or object
Optional
options: QuoteTableOptionsoptions
Optional
options: RemoveColumnQueryOptionsOptional
options: RemoveConstraintQueryOptionsOptional
_options: RemoveIndexQueryOptionsOptional
options: RenameTableQueryOptionsOptional
constraints: readonly string[]Returns a query that sets the transaction isolation level.
Optional
_options: ShowConstraintsQueryOptionsReturns a query that starts a transaction.
Optional
options: StartTransactionQueryOptionsOptional
_options: TruncateTableQueryOptionsOptional
options: FormatWhereOptionsOptional
options: FormatWhereOptions
This is a temporary class used to progressively migrate the AbstractQueryGenerator class to TypeScript by slowly moving its functions here. Always use AbstractQueryGenerator instead.