Subject | Firebird-Nodejs: [Connection is closed] error |
---|---|
Author | Markand Bhatt |
Post date | 2016-09-11T19:04:29Z |
Guys, I need your help to connect nodejs to firebird.
I have also posted my question on stackoverflow http://stackoverflow.com/ questions/39429372/firebird- getaddrinfo-enotfound/ 39433949#39433949https://www.npmjs.com/package/ node-firebird
var Firebird = require('node-firebird');
var options = {};
options.host = 'localhost';
options.database='d:\\a.fdb';
options.user = 'sysdba';
options.password = 'sa123';
app.get('/', function(request, response) {
Firebird.attach(options, function(err, db) {
if (err)
console.log(err); //Here I get error [Connection is closed]
console.log(db);
});
});