UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

12 lines 367 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.escapeIdent = escapeIdent; /** * Optionally encloses a PG identifier (like table name) in "". */ function escapeIdent(ident) { return ident.match(/^[a-z_][a-z_0-9]*$/is) ? ident : '"' + ident.replace(/"/g, '""') + '"'; } //# sourceMappingURL=escapeIdent.js.map