interface SequelizeHooks<Dialect> {
    _UNSTABLE_afterBulkDestroy(options, deletedCount): AsyncHookReturn;
    _UNSTABLE_beforeBulkDestroy(options): AsyncHookReturn;
    afterAssociate(data, options): AsyncHookReturn;
    afterBulkCreate(instances, options): AsyncHookReturn;
    afterBulkDestroy(options): AsyncHookReturn;
    afterBulkRestore(options): AsyncHookReturn;
    afterBulkSync(options): AsyncHookReturn;
    afterBulkUpdate(options): AsyncHookReturn;
    afterConnect(connection, config): AsyncHookReturn;
    afterCreate(attributes, options): AsyncHookReturn;
    afterDefine(model): void;
    afterDefinitionRefresh(): void;
    afterDestroy(instance, options): AsyncHookReturn;
    afterDestroyMany(instances, options, deletedCount): AsyncHookReturn;
    afterDisconnect(connection): AsyncHookReturn;
    afterFind(instancesOrInstance, options): AsyncHookReturn;
    afterPoolAcquire(connection, options?): AsyncHookReturn;
    afterQuery(options, query): AsyncHookReturn;
    afterRestore(instance, options): AsyncHookReturn;
    afterSave(instance, options): AsyncHookReturn;
    afterSync(options): AsyncHookReturn;
    afterUpdate(instance, options): AsyncHookReturn;
    afterUpsert(attributes, options): AsyncHookReturn;
    afterValidate(instance, options): AsyncHookReturn;
    beforeAssociate(data, options): AsyncHookReturn;
    beforeBulkCreate(instances, options): AsyncHookReturn;
    beforeBulkDestroy(options): AsyncHookReturn;
    beforeBulkRestore(options): AsyncHookReturn;
    beforeBulkSync(options): AsyncHookReturn;
    beforeBulkUpdate(options): AsyncHookReturn;
    beforeConnect(config): AsyncHookReturn;
    beforeCount(options): AsyncHookReturn;
    beforeCreate(attributes, options): AsyncHookReturn;
    beforeDefine(attributes, options): void;
    beforeDefinitionRefresh(): void;
    beforeDestroy(instance, options): AsyncHookReturn;
    beforeDestroyMany(instances, options): AsyncHookReturn;
    beforeDisconnect(connection): AsyncHookReturn;
    beforeFind(options): AsyncHookReturn;
    beforeFindAfterExpandIncludeAll(options): AsyncHookReturn;
    beforeFindAfterOptions(options): AsyncHookReturn;
    beforePoolAcquire(options?): AsyncHookReturn;
    beforeQuery(options, query): AsyncHookReturn;
    beforeRestore(instance, options): AsyncHookReturn;
    beforeSave(instance, options): AsyncHookReturn;
    beforeSync(options): AsyncHookReturn;
    beforeUpdate(instance, options): AsyncHookReturn;
    beforeUpsert(attributes, options): AsyncHookReturn;
    beforeValidate(instance, options): AsyncHookReturn;
    validationFailed(instance, options, error): AsyncHookReturn;
}

Type Parameters

Hierarchy (view full)

Methods