UNPKG

longcelot-sheet-db

Version:

Google Sheets-backed staging database adapter for Node.js with schema-first design

17 lines 769 B
/** * The small set of syntactic differences SQLTableOperations needs to stay dialect-agnostic: * placeholder style, identifier quoting, boolean literal representation, LIMIT/OFFSET syntax, * and native constraint-violation classification (for errorTranslation.ts, Phase 16.2 decision 3). */ export interface SQLDialect { name: 'postgres' | 'mysql'; quoteIdent(name: string): string; placeholder(index: number): string; booleanLiteral(value: boolean): unknown; limitOffsetClause(limit?: number, offset?: number): string; isUniqueViolation(err: unknown): boolean; isFKViolation(err: unknown): boolean; } export declare const PostgresDialect: SQLDialect; export declare const MySQLDialect: SQLDialect; //# sourceMappingURL=dialect.d.ts.map