hstore.js 355 B

123456789101112131415
  1. "use strict";
  2. const hstore = require("pg-hstore")({ sanitize: true });
  3. function stringify(data) {
  4. if (data === null)
  5. return null;
  6. return hstore.stringify(data);
  7. }
  8. exports.stringify = stringify;
  9. function parse(value) {
  10. if (value === null)
  11. return null;
  12. return hstore.parse(value);
  13. }
  14. exports.parse = parse;
  15. //# sourceMappingURL=hstore.js.map