@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, Oracle, and IBM i. It features solid transaction support, relations, eager and lazy loading, read repli
18 lines (17 loc) • 619 B
TypeScript
import type { DatabaseErrorSubclassOptions } from '../database-error';
import { DatabaseError } from '../database-error';
interface UnknownConstraintErrorOptions {
constraint?: string;
fields?: Record<string, string | number>;
table?: string;
}
/**
* Thrown when constraint name is not found in the database
*/
export declare class UnknownConstraintError extends DatabaseError {
constraint: string | undefined;
fields: Record<string, string | number> | undefined;
table: string | undefined;
constructor(options?: UnknownConstraintErrorOptions & DatabaseErrorSubclassOptions);
}
export {};