GrauKatze 26e3d1a21c инициализация проекта | il y a 2 ans | |
---|---|---|
.. | ||
lib | il y a 2 ans | |
test | il y a 2 ans | |
.jshintrc | il y a 2 ans | |
.travis.yml | il y a 2 ans | |
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
package.json | il y a 2 ans |
A node package for serializing and deserializing JSON data to hstore format
$ npm install pg-hstore
var hstore = require('pg-hstore')();
var source = { foo: "oof", bar: "rab", baz: "zab" };
hstore.stringify(source, function(result) {
...
// result = '"foo"=>"oof", "bar"=>"rab", "baz"=>"zab"'
...
});
var hstore = require('pg-hstore')();
var source = '"foo"=>"oof", "bar"=>"rab", "baz"=>"zab"';
hstore.parse(source, function(result) {
...
// result = { foo: "oof", bar: "rab", baz: "zab" }
...
});