Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js firebird example

var { GDSCode } = require('node-firebird/lib/gdscodes');/*...*/db.query('insert into my_table(id, name) values (?, ?)', [1, 'John Doe'],    function (err) {        if(err.gdscode == GDSCode.UNIQUE_KEY_VIOLATION){            console.log('constraint name:'+ err.gdsparams[0]);            console.log('table name:'+ err.gdsparams[0]);            /*...*/        }        /*...*/    }); 
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #node #js #firebird
ADD COMMENT
Topic
Name
7+3 =