BE-SPAN/node_modules/sequelize-oracle/lib/dialects/postgres/hstore.js
githubna-ilham 722cd440e8 first commit
2024-10-20 22:04:16 +07:00

19 lines
334 B
JavaScript

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