GrauKatze 26e3d1a21c инициализация проекта | 2 gadi atpakaļ | |
---|---|---|
.. | ||
lib | 2 gadi atpakaļ | |
test | 2 gadi atpakaļ | |
.jshintrc | 2 gadi atpakaļ | |
.travis.yml | 2 gadi atpakaļ | |
LICENSE | 2 gadi atpakaļ | |
README.md | 2 gadi atpakaļ | |
package.json | 2 gadi atpakaļ |
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" }
...
});