@athenna/database
Version:
The Athenna database handler for SQL/NoSQL.
28 lines (27 loc) • 767 B
TypeScript
/**
* @athenna/database
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { ConstraintViolationException } from '#src/exceptions/ConstraintViolationException';
export type ForeignKeyViolationMeta = {
table?: string;
column?: string;
constraint?: string;
driver?: string;
raw?: any;
};
export declare class ForeignKeyViolationException extends ConstraintViolationException {
/**
* The referencing column, when known.
*/
column?: string;
/**
* The name of the violated foreign key constraint, when known.
*/
constraint?: string;
constructor(meta?: ForeignKeyViolationMeta);
}