jsharmony-db-pgsql

1.13.1 • Public • Published

==================

jsharmony-db-pgsql

==================

jsHarmony Database Connector for PostgreSQL

Installation

npm install jsharmony-db-pgsql --save

Usage

var JSHpgsql = require('jsharmony-db-pgsql');
var JSHdb = require('jsharmony-db');
var dbconfig = { _driver: new JSHpgsql(), host: "server.domain.com", database: "DBNAME", user: "DBUSER", password: "DBPASS" };
var db = new JSHdb(dbconfig);
db.Recordset('','select * from c where c_id >= @c_id',[JSHdb.types.BigInt],{'c_id': 10},function(err,rslt){
  console.log(rslt);
  done();
});

This library uses the NPM pg library. Use any of the connection settings available in that library.

Release History

  • 1.0.0 Initial release

Package Sidebar

Install

npm i jsharmony-db-pgsql

Weekly Downloads

6

Version

1.13.1

License

LGPL-3.0

Unpacked Size

138 kB

Total Files

16

Last publish

Collaborators

  • apharmony