Skip to content

Commit ae4edf4

Browse files
committed
updated sqlite to 3.35.2 and updated dependencies
1 parent f9663fc commit ae4edf4

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

benchmark/drivers.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = new Map([
1313
return db;
1414
}],
1515
['node-sqlite3', async (filename, pragma) => {
16-
const db = await require('sqlite').open(filename);
16+
const driver = require('sqlite3').Database;
17+
const db = await (require('sqlite').open)({ filename, driver });
1718
for (const str of pragma) await db.run(`PRAGMA ${str}`);
1819
return db;
1920
}],

deps/download.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
22

33
# ===
44
# This script defines and generates the bundled SQLite3 unit (sqlite3.c).
@@ -18,8 +18,8 @@
1818
# 3. node-gyp links the two resulting binaries to generate better_sqlite3.node.
1919
# ===
2020

21-
VERSION="3340000"
22-
YEAR="2020"
21+
YEAR="2021"
22+
VERSION="3350200"
2323

2424
DEFINES="
2525
SQLITE_DQS=0
@@ -64,7 +64,7 @@ curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/source.
6464

6565
echo "extracting source..."
6666
unzip "$TEMP/source.zip" -d "$TEMP" > /dev/null || exit 1
67-
cd "$TEMP/sqlite-src-$VERSION"
67+
cd "$TEMP/sqlite-src-$VERSION" || exit 1
6868

6969
echo "configuring amalgamation..."
7070
sh configure > /dev/null || exit 1
@@ -92,7 +92,7 @@ printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
9292
printf "\`\`\`\n" >> "$DOCS"
9393

9494
echo "cleaning up..."
95-
cd - > /dev/null
95+
cd - > /dev/null || exit 1
9696
rm -rf "$TEMP"
9797

9898
echo "done!"

deps/sqlite3.tar.gz

21.9 KB
Binary file not shown.

docs/compilation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you're using a SQLite3 encryption extension that is a drop-in replacement for
3434

3535
# Bundled configuration
3636

37-
By default, this distribution currently uses SQLite3 **version 3.34.0** with the following [compilation options](https://www.sqlite.org/compile.html):
37+
By default, this distribution currently uses SQLite3 **version 3.35.2** with the following [compilation options](https://www.sqlite.org/compile.html):
3838

3939
```
4040
SQLITE_DQS=0

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@
1111
},
1212
"dependencies": {
1313
"bindings": "^1.5.0",
14-
"prebuild-install": "^5.3.3",
15-
"tar": "^6.0.5"
14+
"prebuild-install": "^6.0.1",
15+
"tar": "^6.1.0"
1616
},
1717
"devDependencies": {
18-
"chai": "^4.2.0",
18+
"chai": "^4.3.4",
1919
"cli-color": "^2.0.0",
20-
"fs-extra": "^8.1.0",
21-
"mocha": "^7.0.1",
20+
"fs-extra": "^9.1.0",
21+
"mocha": "^8.3.2",
2222
"nodemark": "^0.3.0",
23-
"prebuild": "^10.0.0",
24-
"sqlite": "^3.0.3"
23+
"prebuild": "^10.0.1",
24+
"sqlite": "^4.0.19",
25+
"sqlite3": "^5.0.2"
2526
},
2627
"scripts": {
2728
"install": "prebuild-install || npm run build-release",
@@ -31,7 +32,7 @@
3132
"rebuild-debug": "npm run lzz && npm run build-debug",
3233
"test": "mocha --exit --slow=75 --timeout=5000",
3334
"benchmark": "node benchmark",
34-
"download": "sh ./deps/download.sh",
35+
"download": "bash ./deps/download.sh",
3536
"lzz": "lzz -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz",
3637
"prepublishOnly": "npm run lzz"
3738
},

0 commit comments

Comments
 (0)