@sequelize/core
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a
20 lines (19 loc) • 674 B
TypeScript
import { BaseError } from './base-error';
interface OptimisticLockErrorOptions {
message?: string;
/** The name of the model on which the update was attempted */
modelName?: string;
/** The values of the attempted update */
values?: Record<string, unknown>;
where?: Record<string, unknown>;
}
/**
* Thrown when attempting to update a stale model instance
*/
export declare class OptimisticLockError extends BaseError {
modelName: string | undefined;
values: Record<string, unknown> | undefined;
where: Record<string, unknown> | undefined;
constructor(options?: OptimisticLockErrorOptions, errorOptions?: ErrorOptions);
}
export {};