Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js firebird example

Firebird.attach(options, function(err, db) {     if (err)        throw err;     // db = DATABASE    db.transaction(Firebird.ISOLATION_READ_COMMITED, function(err, transaction) {        transaction.query('INSERT INTO users VALUE(?,?)', [1, 'Janko'], function(err, result) {             if (err) {                transaction.rollback();                return;            }             transaction.commit(function(err) {                if (err)                    transaction.rollback();                else                    db.detach();            });        });    });});
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #node #js #firebird
ADD COMMENT
Topic
Name
6+8 =