Socket
Socket
Sign inDemoInstall

better-sqlite3

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-sqlite3 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

benchmark/concurrency-trial.js

9

benchmark/dual-trial.js

@@ -20,3 +20,8 @@ 'use strict';

function callback2() {
process.exit();
var closedCount = 0;
ourDb.on('close', closed).close();
theirDb.close(closed);
function closed() {
++closedCount === 2 && process.exit();
}
}

@@ -58,3 +63,3 @@ setTimeout(callback0, 100);

} else {
db.run('SELECT name FROM entries WHERE rowid=?', i + 1, callback);
db.get('SELECT name FROM entries WHERE rowid=?', i + 1, callback);
}

@@ -61,0 +66,0 @@ }

@@ -13,3 +13,8 @@ 'use strict';

function callback2() {
process.exit();
var closedCount = 0;
ourDb.on('close', closed).close();
theirDb.close(closed);
function closed() {
++closedCount === 2 && process.exit();
}
}

@@ -16,0 +21,0 @@ setTimeout(callback0, 100);

@@ -16,3 +16,8 @@ 'use strict';

function callback2() {
process.exit();
var closedCount = 0;
ourDb.on('close', closed).close();
theirDb.close(closed);
function closed() {
++closedCount === 2 && process.exit();
}
}

@@ -19,0 +24,0 @@ setTimeout(callback0, 100);

@@ -16,3 +16,8 @@ 'use strict';

function callback2() {
process.exit();
var closedCount = 0;
ourDb.on('close', closed).close();
theirDb.close(closed);
function closed() {
++closedCount === 2 && process.exit();
}
}

@@ -19,0 +24,0 @@ setTimeout(callback0, 100);

@@ -16,3 +16,8 @@ 'use strict';

function callback2() {
process.exit();
var closedCount = 0;
ourDb.on('close', closed).close();
theirDb.close(closed);
function closed() {
++closedCount === 2 && process.exit();
}
}

@@ -19,0 +24,0 @@ setTimeout(callback0, 100);

@@ -13,3 +13,8 @@ 'use strict';

function callback2() {
process.exit();
var closedCount = 0;
ourDb.on('close', closed).close();
theirDb.close(closed);
function closed() {
++closedCount === 2 && process.exit();
}
}

@@ -16,0 +21,0 @@ setTimeout(callback0, 100);

@@ -6,3 +6,3 @@ 'use strict';

theirDb.exec('PRAGMA journal_mode = DELETE; PRAGMA synchronous = 2;', function () {
require('../transaction-trial')(ourDb, theirDb, 500, [
require('../transaction-trial')(ourDb, theirDb, 5000, [
'John Smith',

@@ -9,0 +9,0 @@ 123456,

@@ -6,3 +6,3 @@ 'use strict';

theirDb.exec('PRAGMA journal_mode = WAL; PRAGMA synchronous = 1;', function () {
require('../transaction-trial')(ourDb, theirDb, 500, [
require('../transaction-trial')(ourDb, theirDb, 5000, [
'John Smith',

@@ -9,0 +9,0 @@ 123456,

{
"name": "better-sqlite3",
"version": "1.0.0",
"version": "1.0.1",
"description": "The fastest and simplest library for SQLite3 in Node.js.",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/JoshuaWise/better-sqlite3",

@@ -38,3 +38,3 @@ # better-sqlite3 [![Build Status](https://travis-ci.org/JoshuaWise/better-sqlite3.svg?branch=master)](https://travis-ci.org/JoshuaWise/better-sqlite3)

- [API documentation](https://github.com/JoshuaWise/better-sqlite3/wiki/API)
- [Performance](https://github.com/JoshuaWise/better-sqlite3/wiki/Performance)
- [Performance](https://github.com/JoshuaWise/better-sqlite3/wiki/Performance) (also see [benchmark results](https://github.com/JoshuaWise/better-sqlite3/wiki/Benchmark))
- [64-bit integer support](https://github.com/JoshuaWise/better-sqlite3/wiki/64-bit-integer-support)

@@ -41,0 +41,0 @@ - [SQLite3 compilation options](https://github.com/JoshuaWise/better-sqlite3/wiki/SQLite3-compilation-options)

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc