Socket
Socket
Sign inDemoInstall

node-firebird

Package Overview
Dependencies
1
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.7 to 0.9.8

lib/gdscodes.d.ts

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc