better-sqlite3
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2601600
111
1011