|
пре 2 година | |
---|---|---|
.. | ||
lib | пре 2 година | |
test | пре 2 година | |
.jshintrc | пре 2 година | |
.travis.yml | пре 2 година | |
LICENSE | пре 2 година | |
README.md | пре 2 година | |
package.json | пре 2 година |
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" }
...
});