Private
Readonly
#internalsReadonly
dialectPrivate
#whereProtected
optionsProtected
sequelizeOptional
options: AddColumnQueryOptionsOptional
options: ArithmeticQueryOptionsOptional
options: AttributeToSqlOptionsCreates a function that can be used to collect bind parameters.
A mutable object to which bind parameters will be added.
Optional
options: BulkInsertOptionsOptional
columnDefinitions: { Optional
_options: CreateDatabaseQueryOptionsOptional
options: CreateSchemaQueryOptionsOptional
options: CreateTableQueryOptionsGenerates 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.
Optional
columnDefinitions: { Optional
options: InsertOptionsOptional
bind?: unknown[]⚠️ 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
options: SelectOptions<M>Optional
model: ModelStatic<M>Optional
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: UpdateOptionsOptional
columnDefinitions: { Optional
bind?: unknown[]Optional
options: FormatWhereOptionsOptional
options: FormatWhereOptions
The base class for all query generators, used to generate all SQL queries.
The implementation varies between SQL dialects, and is overridden by subclasses. You can access your dialect's version through Sequelize#queryGenerator.