Optional
options: AbstractQueryOptionsA Sequelize connection instance.
If provided, returns the model instance.
Model type definition.
Returns the current sequelize instance.
The SQL being executed by this Query.
Returns a unique identifier assigned to a query internally by Sequelize.
Protected
_logProtected
A function to call after the query was completed.
Private
checkPrivate
getPrivate
getPrivate
runPrivate
Static
_groupPrivate
The function takes the result of the query execution and groups the associated data by the callee.
groupJoinData([
{
some: 'data',
id: 1,
association: { foo: 'bar', id: 1 }
}, {
some: 'data',
id: 1,
association: { foo: 'bar', id: 2 }
}, {
some: 'data',
id: 1,
association: { foo: 'bar', id: 3 }
}
]);
Results in:
[
{
some: 'data',
id: 1,
association: [
{ foo: 'bar', id: 1 },
{ foo: 'bar', id: 2 },
{ foo: 'bar', id: 3 }
]
}
]
An abstract class that Sequelize uses to add query support for a dialect.
This interface is only exposed when running before/afterQuery lifecycle events.