How to use node.js to connect to a running database firebird?

Good day.
write the first time node.js
connect to the database firebird . to obtain the number of records possible, and it works.
but if this database is opened in IBExpert, for example, the error when open the file.
Is it possible and how to connect to the database open 24/7 ( end task - display added online lines in a particular table.lines are added when applying the pass to the turnstile - can be only if you can write a trigger to the database ? and while it is possible to listen to the reaction to be triggered ? ) ?
September 19th 19 at 13:25
3 answers
September 19th 19 at 13:27
What is the error when you connect?
Try IBExpert Services menu-> Database on the barrel
September 19th 19 at 13:29
[Error: I/O error during "CreateFile (open)" operation for file "D:\PROGR\BD_FOR_NODE\REMOT\T.GDB" Error while trying to open file]

d:\progr\bd_for_node\remot\index.js:20
if (err) throw console.log(err);
^
undefined
Process finished with exit code 1

krieyt file open I understand is happening here :
<b>firebird.attach(fbOptions, function(err, db)</b> {
 if (err) throw console.log(err);
 db.query('SELECT COUNT(*) FROM PERS', function(err, result) {
console.log(result);
db.detach();
});
});

PS I use the module node-firebird

-------------------------------------------------------------------------------------------------------------
removed information about the registration of IBExpert and added again. it worked.
so he thought up himself .
thank you.
September 19th 19 at 13:31
Most likely running 2 server instance or connect using the embed + server

Find more questions by tags Firebird