pg-hstore

A module for serializing and deserializing JSON data into hstore format

MIT 16 个版本
安装
npm install pg-hstore
yarn add pg-hstore
pnpm add pg-hstore
bun add pg-hstore
README

Build Status

pg-hstore

A node package for serializing and deserializing JSON data to hstore format

Install pg-hstore

$ npm install pg-hstore

Usage

stringify

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"'
  ...
});

parse

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" } 
  ...
});
版本列表
2.3.4 2021-06-09
2.3.3 2019-06-03
2.3.2 2015-03-31
2.3.1 2015-01-08
2.3.0 2015-01-08
2.2.0 2014-10-20
2.1.2 2014-08-14
2.1.1 2014-08-06
2.1.0 2014-05-20
2.0.0 2014-03-10
1.1.0 2014-03-10
1.0.4 2014-01-12
1.0.3 2013-01-30
1.0.2 2012-12-05
1.0.1 2012-06-23
1.0.0 2012-06-23