seneca-postgres-store

Seneca data store plugin for PostgreSQL

npm install seneca-postgres-store
6 downloads in the last week
8 downloads in the last month

seneca-postgres

seneca-postgres is a PostgreSQL database plugin for the Seneca MVP toolkit. The plugin is using the node-postgres driver.

Usage:

var seneca = require('seneca');
var store = require('seneca-postgres');

var config = {}
var storeopts = {
  name:'dbname',
  host:'127.0.0.1',
  port:5432,
  username:'user',
  password:'password'
};

...

var si = seneca(config)
si.use(store, storeopts)
si.ready(function() {
  var product = si.make('product')
  ...
})
...
npm loves you