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.
16 lines (15 loc) • 473 B
TypeScript
import BaseError from './base-error';
import type { Model } from '../../types/lib/model';
/**
* Thrown when bulk operation fails, it represent per record level error.
* Used with AggregateError
*
* @param error Error for a given record/instance
* @param record DAO instance that error belongs to
*/
declare class BulkRecordError extends BaseError {
errors: Error;
record: Model;
constructor(error: Error, record: Model);
}
export default BulkRecordError;