better-sqlite3
Advanced tools
Comparing version 7.6.2 to 8.0.0
{ | ||
"name": "better-sqlite3", | ||
"version": "7.6.2", | ||
"version": "8.0.0", | ||
"description": "The fastest and simplest library for SQLite3 in Node.js.", | ||
@@ -27,2 +27,3 @@ "homepage": "http://github.com/WiseLibs/better-sqlite3", | ||
"mocha": "^8.3.2", | ||
"node-gyp": "8.4.1", | ||
"nodemark": "^0.3.0", | ||
@@ -33,4 +34,9 @@ "prebuild": "^11.0.4", | ||
}, | ||
"overrides": { | ||
"prebuild": { | ||
"node-gyp": "$node-gyp" | ||
} | ||
}, | ||
"scripts": { | ||
"install": "prebuild-install || npm run build-release", | ||
"install": "prebuild-install || node-gyp rebuild --release", | ||
"build-release": "node-gyp rebuild --release", | ||
@@ -37,0 +43,0 @@ "build-debug": "node-gyp rebuild --debug", |
@@ -46,2 +46,8 @@ # better-sqlite3 [![Build Status](https://github.com/JoshuaWise/better-sqlite3/actions/workflows/build.yml/badge.svg)](https://github.com/JoshuaWise/better-sqlite3/actions/workflows/build.yml?query=branch%3Amaster) | ||
Though not required, [it is generally important to set the WAL pragma for performance reasons](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/performance.md). | ||
```js | ||
db.pragma('journal_mode = WAL'); | ||
``` | ||
##### In ES6 module notation: | ||
@@ -52,2 +58,3 @@ | ||
const db = new Database('foobar.db', options); | ||
db.pragma('journal_mode = WAL'); | ||
``` | ||
@@ -54,0 +61,0 @@ |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
9480952
93
0
9