0.10.4 • Published 9 years ago

pg-json-data-export v0.10.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

pg-json-data-export

NPM version Build status Dependency Status

Export a Postgres database as JSON

Install

$ npm install pg-json-data-export --save

Usage

var exporter = require('pg-json-data-export');
var connection = {
  // pg connections object
};
exporter.toJSON(connection, 'public')
  .then(function (dump) {
    console.log(dump.table1.rows);
  });

API

.toJSON (connection, schema)

@paramdescription
connectionconnection string or object compatible with pg
schemathe database schema to export
@returndescription
Objectdump of all tables in database schema{ table1: { rows: [ { /* ... */ } ] } }

License

MIT

0.10.4

9 years ago

0.10.3

9 years ago

0.10.2

10 years ago

0.10.1

10 years ago

0.10.0

10 years ago

0.9.1

10 years ago

0.9.0

10 years ago

0.0.0

10 years ago