UNPKG

slonik-utilities

Version:

Utilities for manipulating data in PostgreSQL database using Slonik.

7 lines (6 loc) 242 B
/** * @see https://github.com/brianc/node-postgres/blob/6c840aabb09f8a2d640800953f6b884b6841384c/lib/client.js#L306-L322 */ export const escapeIdentifier = (identifier: string) => { return '"' + identifier.replaceAll('"', '""') + '"'; };