I created the following event in Firebird 2.5
CREATE TRIGGER neworc FOR ORC AFTER INSERT POSITION 0
AS
BEGIN
POST_EVENT 'new_orc';
END
I would like to know if there is a way for me to listen for this event in my node application. I installed the node-firebird package and created the code below, but it didn't work.
Firebird.attach(options, function(err, db) {
if (err)
throw err;
db.on('new_orc', function(result) {
console.log(result);
});
});