node-firebird
Advanced tools
Comparing version 0.9.7 to 0.9.8
{ | ||
"name": "node-firebird", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "Pure JavaScript and Asynchronous Firebird client for Node.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -348,2 +348,20 @@ # Pure JavaScript and Asynchronous Firebird client for Node.js | ||
### Using GDS codes | ||
```js | ||
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]); | ||
/*...*/ | ||
} | ||
/*...*/ | ||
}); | ||
``` | ||
### Service Manager functions | ||
@@ -350,0 +368,0 @@ |
Sorry, the diff of this file is too big to display
435794
14
5655
537