Files
FloatApi/node_modules/sequelize/lib/dialects/postgres/hstore.js
T
2022-03-07 22:07:57 +07:00

16 lines
315 B
JavaScript

'use strict';
const hstore = require('pg-hstore')({ sanitize: true });
function stringify(data) {
if (data === null) return null;
return hstore.stringify(data);
}
exports.stringify = stringify;
function parse(value) {
if (value === null) return null;
return hstore.parse(value);
}
exports.parse = parse;