Answer the question
In order to leave comments, you need to log in
How to connect to a running firebird database using node.js?
Good afternoon.
I am writing for the first time on node.js
, connecting to the firebird database. it is possible to get the number of records, everything works.
but if this database is open in IBExpert, for example, then an error occurs when opening the file.
Is it possible and how to connect to an open 24/7 database (the ultimate task is to display the lines added online in a certain table. The lines are added when a pass is applied to the turnstile - maybe only if you write a trigger to that database? and then somehow you can listen to the reaction to its operation?) ?
Answer the question
In order to leave comments, you need to log in
What is the connection error?
Try in IBExpert menu Services-> Base per barrel
[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
crate file is open, as I understand it, it happens 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();
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question