vscode-sqlite3
Advanced tools
Comparing version
# Changelog | ||
## 4.0.8 (internal) | ||
- Merge with upstream (node.js 12 support) | ||
## 4.0.7 | ||
- Node v12 support | ||
- Electron v5 support | ||
- Fix backup API tests | ||
- HAVE_USLEEP=1 for all platforms | ||
- docker suport | ||
## 4.0.6 | ||
- Release of 4.0.5 (again due CI) | ||
- Fix building on arm. [#5](https://github.com/Microsoft/vscode-node-sqlite3/pull/5) | ||
## 4.0.6 | ||
## 4.0.6 (internal) | ||
- **SECURITY:** Upgrade SQLite to 3.26.0 [#1088](https://github.com/mapbox/node-sqlite3/pull/1088) | ||
@@ -143,3 +156,3 @@ - add constants for file open (shared databases) [#1078](https://github.com/mapbox/node-sqlite3/pull/1078) | ||
- Fixed binaries to work on older linux systems (circa GLIBC_2.2.5 like centos 6) @bnoordhuis | ||
- Updated internal libsqlite3 from 3.8.7.1 -> 3.8.9 (http://www.sqlite.org/news.html) | ||
- Updated internal libsqlite3 from 3.8.7.1 -> 3.8.9 (https://www.sqlite.org/news.html) | ||
@@ -203,3 +216,3 @@ ## 3.0.5 | ||
- Updated to node-pre-gyp@0.5.18 | ||
- updated internal libsqlite3 from 3.8.4.3 -> 3.8.5 (http://www.sqlite.org/news.html) | ||
- updated internal libsqlite3 from 3.8.4.3 -> 3.8.5 (https://www.sqlite.org/news.html) | ||
@@ -228,3 +241,3 @@ ## 2.2.3 | ||
- updated internal libsqlite3 from 3.7.17 -> 3.8.2 (http://www.sqlite.org/news.html) which includes the next-generation query planner http://www.sqlite.org/queryplanner-ng.html | ||
- updated internal libsqlite3 from 3.7.17 -> 3.8.2 (https://www.sqlite.org/news.html) which includes the next-generation query planner http://www.sqlite.org/queryplanner-ng.html | ||
- improved binary deploy system using https://github.com/springmeyer/node-pre-gyp | ||
@@ -231,0 +244,0 @@ - binary install now supports http proxies |
@@ -60,5 +60,7 @@ var binding = require('../build/Release/sqlite'); | ||
var Statement = sqlite3.Statement; | ||
var Backup = sqlite3.Backup; | ||
inherits(Database, EventEmitter); | ||
inherits(Statement, EventEmitter); | ||
inherits(Backup, EventEmitter); | ||
@@ -101,2 +103,19 @@ // Database#prepare(sql, [bind1, bind2, ...], [callback]) | ||
// Database#backup(filename, [callback]) | ||
// Database#backup(filename, destName, sourceName, filenameIsDest, [callback]) | ||
Database.prototype.backup = function() { | ||
var backup; | ||
if (arguments.length <= 2) { | ||
// By default, we write the main database out to the main database of the named file. | ||
// This is the most likely use of the backup api. | ||
backup = new Backup(this, arguments[0], 'main', 'main', true, arguments[1]); | ||
} else { | ||
// Otherwise, give the user full control over the sqlite3_backup_init arguments. | ||
backup = new Backup(this, arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]); | ||
} | ||
// Per the sqlite docs, exclude the following errors as non-fatal by default. | ||
backup.retryErrors = [sqlite3.BUSY, sqlite3.LOCKED]; | ||
return backup; | ||
}; | ||
Statement.prototype.map = function() { | ||
@@ -103,0 +122,0 @@ var params = Array.prototype.slice.call(arguments); |
{ | ||
"name": "vscode-sqlite3", | ||
"description": "Asynchronous, non-blocking SQLite3 bindings", | ||
"version": "4.0.7", | ||
"homepage": "http://github.com/mapbox/node-sqlite3", | ||
"version": "4.0.8", | ||
"homepage": "https://github.com/mapbox/node-sqlite3", | ||
"author": { | ||
@@ -40,3 +40,3 @@ "name": "MapBox", | ||
"dependencies": { | ||
"nan": "~2.10.0" | ||
"nan": "^2.14.0" | ||
}, | ||
@@ -62,2 +62,2 @@ "devDependencies": { | ||
"main": "./lib/sqlite3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings for [Node.js](http://nodejs.org/). | ||
Asynchronous, non-blocking [SQLite3](https://sqlite.org/) bindings for [Node.js](http://nodejs.org/). | ||
@@ -13,3 +13,3 @@ [](https://nodei.co/npm/sqlite3/) | ||
The `sqlite3` module works with Node.js v4.x, v6.x, v8.x, and v10.x. | ||
The `sqlite3` module works with Node.js v4.x, v6.x, v8.x, v10.x, v11.x and v12.x. | ||
@@ -211,3 +211,3 @@ Binaries for most Node versions and platforms are provided by default via [node-pre-gyp](https://github.com/mapbox/node-pre-gyp). | ||
Development of this module is sponsored by [MapBox](http://mapbox.org/). | ||
Development of this module is sponsored by [MapBox](https://mapbox.org/). | ||
@@ -214,0 +214,0 @@ # License |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
2956352
2.09%29
26.09%228
8.57%1
-50%1
Infinity%+ Added
- Removed
Updated