Socket
Socket
Sign inDemoInstall

node-firebird

Package Overview
Dependencies
0
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.4.0

.travis.yml

27

lib/serialize.js

@@ -46,2 +46,8 @@

BlrWriter.prototype.addInt32 = function (b) {
this.ensure(4);
this.buffer.writeUInt32LE(b, this.pos);
this.pos += 4;
};
BlrWriter.prototype.addNumeric = function (c, v) {

@@ -100,2 +106,23 @@

BlrWriter.prototype.addString2 = function (c, s, encoding) {
this.addByte(c);
var len = Buffer.byteLength(s, encoding);
if (len > MAX_STRING_SIZE* MAX_STRING_SIZE)
throw new Error('blr string is too big');
this.ensure(len + 2);
this.buffer.writeUInt16LE(len, this.pos);
this.pos += 2;
this.buffer.write(s, this.pos, s.length, encoding);
this.pos += len;
};
BlrWriter.prototype.addBuffer = function (b) {
this.addSmall(b.length);
this.ensure(b.length);
b.copy(this.buffer, this.pos);
this.pos += b.length;
};
/***************************************

@@ -102,0 +129,0 @@ *

2

package.json
{
"name": "node-firebird",
"version": "0.3.0",
"version": "0.4.0",
"description": "Pure JavaScript and Asynchronous Firebird client for Node.js.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -60,3 +60,3 @@ ![Firebird Logo](https://www.totaljs.com/exports/firebird-logo.png)

options.host = '127.0.0.1';
// options.port = 3050;
options.port = 3050;
options.database = 'database.fdb';

@@ -343,2 +343,24 @@ options.user = 'SYSDBA';

### Backup Service
```js
Firebird.attach(options, function(err, svc) {
if (err)
return;
svc.backup(
{
database:'/DB/MYDB.FDB',
files: [
{
filename:'/DB/MYDB.FBK',
sizefile:'0'
}
]
},
function(err, data) {
console.log(data);
});
```
### Charset for database connection is always UTF-8

@@ -351,5 +373,5 @@

### Firebird 3.0 Support
### Firebird 3.0 Support
Firebird new wire protocol is not supported yet so
Firebird new wire protocol is not supported yet so
for Firebird 3.0 you need to add the following in firebird.conf

@@ -356,0 +378,0 @@ ```

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

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