Subject Firebird-Nodejs: [Connection is closed] error
Author Markand Bhatt
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#39433949

I use node-firebird npm package to connect.
https://www.npmjs.com/package/ node-firebird

Following is my code

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);
    });
});

Help me.