updated sqlite to 3.35.2 and updated dependencies
This commit is contained in:
parent
f9663fc02c
commit
ae4edf4401
@ -13,7 +13,8 @@ module.exports = new Map([
|
||||
return db;
|
||||
}],
|
||||
['node-sqlite3', async (filename, pragma) => {
|
||||
const db = await require('sqlite').open(filename);
|
||||
const driver = require('sqlite3').Database;
|
||||
const db = await (require('sqlite').open)({ filename, driver });
|
||||
for (const str of pragma) await db.run(`PRAGMA ${str}`);
|
||||
return db;
|
||||
}],
|
||||
|
||||
10
deps/download.sh
vendored
10
deps/download.sh
vendored
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ===
|
||||
# This script defines and generates the bundled SQLite3 unit (sqlite3.c).
|
||||
@ -18,8 +18,8 @@
|
||||
# 3. node-gyp links the two resulting binaries to generate better_sqlite3.node.
|
||||
# ===
|
||||
|
||||
VERSION="3340000"
|
||||
YEAR="2020"
|
||||
YEAR="2021"
|
||||
VERSION="3350200"
|
||||
|
||||
DEFINES="
|
||||
SQLITE_DQS=0
|
||||
@ -64,7 +64,7 @@ curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/source.
|
||||
|
||||
echo "extracting source..."
|
||||
unzip "$TEMP/source.zip" -d "$TEMP" > /dev/null || exit 1
|
||||
cd "$TEMP/sqlite-src-$VERSION"
|
||||
cd "$TEMP/sqlite-src-$VERSION" || exit 1
|
||||
|
||||
echo "configuring amalgamation..."
|
||||
sh configure > /dev/null || exit 1
|
||||
@ -92,7 +92,7 @@ printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
|
||||
printf "\`\`\`\n" >> "$DOCS"
|
||||
|
||||
echo "cleaning up..."
|
||||
cd - > /dev/null
|
||||
cd - > /dev/null || exit 1
|
||||
rm -rf "$TEMP"
|
||||
|
||||
echo "done!"
|
||||
|
||||
BIN
deps/sqlite3.tar.gz
vendored
BIN
deps/sqlite3.tar.gz
vendored
Binary file not shown.
@ -34,7 +34,7 @@ If you're using a SQLite3 encryption extension that is a drop-in replacement for
|
||||
|
||||
# Bundled configuration
|
||||
|
||||
By default, this distribution currently uses SQLite3 **version 3.34.0** with the following [compilation options](https://www.sqlite.org/compile.html):
|
||||
By default, this distribution currently uses SQLite3 **version 3.35.2** with the following [compilation options](https://www.sqlite.org/compile.html):
|
||||
|
||||
```
|
||||
SQLITE_DQS=0
|
||||
|
||||
17
package.json
17
package.json
@ -11,17 +11,18 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"bindings": "^1.5.0",
|
||||
"prebuild-install": "^5.3.3",
|
||||
"tar": "^6.0.5"
|
||||
"prebuild-install": "^6.0.1",
|
||||
"tar": "^6.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"chai": "^4.3.4",
|
||||
"cli-color": "^2.0.0",
|
||||
"fs-extra": "^8.1.0",
|
||||
"mocha": "^7.0.1",
|
||||
"fs-extra": "^9.1.0",
|
||||
"mocha": "^8.3.2",
|
||||
"nodemark": "^0.3.0",
|
||||
"prebuild": "^10.0.0",
|
||||
"sqlite": "^3.0.3"
|
||||
"prebuild": "^10.0.1",
|
||||
"sqlite": "^4.0.19",
|
||||
"sqlite3": "^5.0.2"
|
||||
},
|
||||
"scripts": {
|
||||
"install": "prebuild-install || npm run build-release",
|
||||
@ -31,7 +32,7 @@
|
||||
"rebuild-debug": "npm run lzz && npm run build-debug",
|
||||
"test": "mocha --exit --slow=75 --timeout=5000",
|
||||
"benchmark": "node benchmark",
|
||||
"download": "sh ./deps/download.sh",
|
||||
"download": "bash ./deps/download.sh",
|
||||
"lzz": "lzz -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz",
|
||||
"prepublishOnly": "npm run lzz"
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user