UNPKG

sequelize

Version:

Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.

17 lines (16 loc) 639 B
import DatabaseError, { DatabaseErrorSubclassOptions } from '../database-error'; interface UnknownConstraintErrorOptions { constraint?: string; fields?: Record<string, string | number>; table?: string; } /** * Thrown when constraint name is not found in the database */ declare class UnknownConstraintError extends DatabaseError implements UnknownConstraintErrorOptions { constraint: string | undefined; fields: Record<string, string | number> | undefined; table: string | undefined; constructor(options: UnknownConstraintErrorOptions & DatabaseErrorSubclassOptions); } export default UnknownConstraintError;