Files
evento/node_modules/kysely/dist/esm/dialect/postgres/postgres-query-compiler.js
2026-03-18 14:55:56 -03:00

9 lines
339 B
JavaScript

/// <reference types="./postgres-query-compiler.d.ts" />
import { DefaultQueryCompiler } from '../../query-compiler/default-query-compiler.js';
const ID_WRAP_REGEX = /"/g;
export class PostgresQueryCompiler extends DefaultQueryCompiler {
sanitizeIdentifier(identifier) {
return identifier.replace(ID_WRAP_REGEX, '""');
}
}