/** * @athenna/database * * (c) João Lenon * * 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); }