@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
12 lines (11 loc) • 363 B
TypeScript
import type { SQLError } from './dialects/types.js';
/**
* Translates an error thrown by any of the databases into a pre-defined Exception. Currently
* supports:
* - Invalid Foreign Key
* - Not Null Violation
* - Record Not Unique
* - Value Out of Range
* - Value Too Long
*/
export declare function translateDatabaseError(error: SQLError): Promise<any>;