@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
15 lines • 534 B
TypeScript
/**
* Error: while inserting or updating, DB unique key was violated,
* so the Ent was not mutated.
*/
export declare class EntUniqueKeyError extends Error {
readonly entName: string;
readonly input: unknown;
constructor(entName: string, input: unknown);
/**
* Returns a promise of T on success, and undefined in case unique key
* violation happened during the promise resolution.
*/
static ignore<T>(promise: Promise<T>): Promise<T | undefined>;
}
//# sourceMappingURL=EntUniqueKeyError.d.ts.map