@cocalc/database
Version:
CoCalc: code for working with our PostgreSQL database
15 lines • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.quoteField = void 0;
// Certain field aren't allowed without quoting in Postgres.
// Also case sensitivity can be messed up by not quoting. So
// we use this to quote.
function quoteField(field) {
if (field[0] === '"') {
// already quoted
return field;
}
return `"${field}"`;
}
exports.quoteField = quoteField;
//# sourceMappingURL=util.js.map