Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js firebird example

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();});
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #node #js #firebird
ADD COMMENT
Topic
Name
5+6 =