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.8.9 to 0.8.10

0

lib/index.d.ts

@@ -0,0 +0,0 @@ // Type definitions for node-firebird

4

lib/messages.js

@@ -130,3 +130,3 @@ var fs = require('fs');

buffer = new Buffer(14);
buffer = Buffer.alloc(14);
fs.read(h, buffer, 0, 14, 0, function(){

@@ -138,3 +138,3 @@

levels = buffer.readUInt16LE(12);
buffer = new Buffer(bucket_size);
buffer = Buffer.alloc(bucket_size);

@@ -141,0 +141,0 @@ var i = 0;

@@ -18,3 +18,3 @@

var BlrWriter = exports.BlrWriter = function(size){
this.buffer = new Buffer(size || 32);
this.buffer = Buffer.alloc(size || 32);
this.pos = 0;

@@ -198,7 +198,7 @@ };

tmp = ret;
ret = new Buffer(tmp.length + len);
ret = Buffer.alloc(tmp.length + len);
tmp.copy(ret);
this.buffer.copy(ret, tmp.length, this.pos, this.pos + len);
} else {
ret = new Buffer(len);
ret = Buffer.alloc(len);
this.buffer.copy(ret, 0, this.pos, this.pos + len);

@@ -226,3 +226,3 @@ }

var XdrWriter = exports.XdrWriter = function(size){
this.buffer = new Buffer(size || 32);
this.buffer = Buffer.alloc(size || 32);
this.pos = 0;

@@ -240,3 +240,3 @@ };

var b = new Buffer(newlen);
var b = Buffer.alloc(newlen);
this.buffer.copy(b);

@@ -243,0 +243,0 @@ delete(this.buffer);

{
"name": "node-firebird",
"version": "0.8.9",
"version": "0.8.10",
"description": "Pure JavaScript and Asynchronous Firebird client for Node.js.",

@@ -29,3 +29,3 @@ "keywords": [

"type": "MPL-2.0",
"url": "https://raw.githubusercontent.com/hgourvest/node-firebird/master/LICENSE"
"url": "https://github.com/hgourvest/node-firebird/blob/master/LICENSE"
}

@@ -37,9 +37,9 @@ ],

"dependencies": {
"long": "^2.2.5"
"long": "^4.0.0"
},
"devDependencies": {
"coveralls": "^3.0.1",
"mocha": "^5.2.0",
"nyc": "^14.1.1"
"mocha": "^7.1.1",
"nyc": "^15.0.1"
}
}

@@ -1,2 +0,2 @@

![Firebird Logo](https://www.totaljs.com/exports/firebird-logo.png)
![Firebird Logo](https://firebirdsql.org/file/about/firebird-logo-90.png)

@@ -31,4 +31,4 @@ [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![Mozilla License][license-image]][license-url]

- [Firebird documentation](http://www.firebirdsql.org/en/documentation/)
- [Firebird limits and data types](http://www.firebirdsql.org/en/firebird-technical-specifications/)
- [Firebird documentation](https://firebirdsql.org/en/documentation/)
- [Firebird limits and data types](https://firebirdsql.org/en/firebird-technical-specifications/)

@@ -143,3 +143,3 @@ ## Installation

// db = DATABASE
db.query('INSERT INTO USERS (ID, ALIAS, CREATED) VALUES(?, ?, ?) RETURNING ID', [1, 'Pe\'ter', new Date()] function(err, result) {
db.query('INSERT INTO USERS (ID, ALIAS, CREATED) VALUES(?, ?, ?) RETURNING ID', [1, 'Pe\'ter', new Date()], function(err, result) {
console.log(result[0].id);

@@ -164,3 +164,3 @@ db.query('SELECT * FROM USERS WHERE Alias=?', ['Peter'], function(err, result) {

// INSERT STREAM as BLOB
db.query('INSERT INTO USERS (ID, ALIAS, FILE) VALUES(?, ?, ?)', [1, 'Peter', fs.createReadStream('/users/image.jpg')] function(err, result) {
db.query('INSERT INTO USERS (ID, ALIAS, FILE) VALUES(?, ?, ?)', [1, 'Peter', fs.createReadStream('/users/image.jpg')], function(err, result) {
// IMPORTANT: close the connection

@@ -182,3 +182,3 @@ db.detach();

// INSERT BUFFER as BLOB
db.query('INSERT INTO USERS (ID, ALIAS, FILE) VALUES(?, ?, ?)', [1, 'Peter', fs.readFileSync('/users/image.jpg')] function(err, result) {
db.query('INSERT INTO USERS (ID, ALIAS, FILE) VALUES(?, ?, ?)', [1, 'Peter', fs.readFileSync('/users/image.jpg')], function(err, result) {
// IMPORTANT: close the connection

@@ -426,2 +426,21 @@ db.detach();

### Restore Service example
```js
const config = {...}; // Clasic configuration with manager = true
const RESTORE_OPTS = {
database: 'database.fdb',
files: ['backup.fbk']
};
Firebird.attach(config, (err, srv) => {
srv.restore(RESTORE_OPTS, (err, data) => {
data.on('data', () => {});
data.on('end', () =>
srv.detach();
});
});
});
```
### getLog and getFbserverInfos Service examples with use of stream and object return

@@ -428,0 +447,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc