Firebird.attach(options, function(err, db) { if (err) throw err; db.on('row', function(row, index, isObject) { // index === Number // isObject === is row object or array? }); db.on('result', function(result) { // result === Array }); db.on('attach', function() { }); db.on('detach', function(isPoolConnection) { // isPoolConnection == Boolean }); db.on('reconnect', function() { }); db.on('error', function(err) { }); db.on('transaction', function(isolation) { // isolation === Number }); db.on('commit', function() { }); db.on('rollback', function() { }); db.detach();});