@athenna/database
Version:
The Athenna database handler for SQL/NoSQL.
28 lines (27 loc) • 790 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 UniqueViolationMeta = {
table?: string;
columns?: string[];
constraint?: string;
driver?: string;
raw?: any;
};
export declare class UniqueViolationException extends ConstraintViolationException {
/**
* The column(s) that make up the violated unique key, when known.
*/
columns?: string[];
/**
* The name of the violated unique constraint/index, when known.
*/
constraint?: string;
constructor(meta?: UniqueViolationMeta);
}