easydbi-pg
easydbi binding for pg
Last updated 3 years ago by yc .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install easydbi-pg 
SYNC missed versions from official npm registry.

EasyDBI-Pg - Postgres Database Adapter for EasyDBI

EasyDBI is a simple database interface for NodeJS. easydbi-pg is the postgresql database adapter for easydbi.

Installation

npm install easydbi
npm install easydbi-pg

Usage

See EasyDBI for more details on the API.

var DBI = require('easydbi'); // already comes with sqlite3
require('easydbi-pg'); // for pg

DBI.setup('test', {type: 'pg', options: {database: 'test', user: 'test', password: 'test', host: 'localhost', port: 5432})

// "prepare" queries. 
DBI.prepare('test', 'createTest', {exec: 'create table test_t (c1 int, c2 int)'});

DBI.connect('test', function(err, conn) { /* ... */ });

Current Tags

  • 0.1.6                                ...           latest (3 years ago)

6 Versions

  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |