ifx_db
Version:
IBM Informix bindings for node
26 lines (25 loc) • 1.03 kB
JavaScript
// var common = require("./common")
// , Pool = require("../").Pool
// , connectionString = common.connectionString;
// //var Promise = require("bluebird");
// // Promise.promisifyAll(require("../lib/odbc").prototype);
// // Promise.promisifyAll(require("../lib/odbc").Pool.prototype);
// // Promise.promisifyAll(require("../lib/odbc").Database.prototype);
// var pool = new Pool();
// function getSqlConnection()
// {
//
// // return pool.openAsync(connectionString).disposer(function (conn) {
// // console.log("connection opened.");
// // conn.query('select 1 from sysibm.sysdummy1', function (err, data) {
// // if (err) console.log(err);
// // else console.log(data);
// // conn.close(function () {
// // console.log('done');
// // });
// // });
// // });
//
// }
// exports.getSqlConnection = getSqlConnection;
// getSqlConnection();