An abstract class that Sequelize uses to add query support for a dialect.

This interface is only exposed when running before/afterQuery lifecycle events.

Constructors

Properties

connection: AbstractConnection

A Sequelize connection instance.

instance: Model

If provided, returns the model instance.

Model type definition.

sequelize: Sequelize

Returns the current sequelize instance.

sql: string

The SQL being executed by this Query.

uuid: unknown

Returns a unique identifier assigned to a query internally by Sequelize.

Methods

  • Protected

    Parameters

    • sql: string
    • debugContext: (msg: string) => any
    • parameters: unknown[] | Record<string, unknown>

    Returns () => void

    A function to call after the query was completed.

  • Sets auto increment field values (if applicable).

    Parameters

    • Optionalresults: unknown[]
    • OptionalmetaData: unknown

    Returns void