Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the use of PRAGMA Key to encrypt db #1018

Open
wants to merge 116 commits into
base: revert-982-linux-image-bump
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
c88ca6d
Move repetitive build commands into environment variables (#989)
m4heshd Apr 19, 2023
aaa8850
Fix the build workflow broken by #989 (#994)
m4heshd Apr 19, 2023
ec51397
Add support for Node v20 prebuilds (#1000)
Chicken May 1, 2023
2843e1f
Remove node.js v14 builds and tests (runtime EOL) (#1001)
m4heshd May 1, 2023
c37b7ee
Fix out-of-bounds read in statement tail parser (#996)
arimah May 2, 2023
9b63caf
Update SQLite to version 3.42.0 (#1011)
JoshuaWise May 20, 2023
e00d110
8.4.0
mceachen May 20, 2023
7eeab2f
Add support for electron `v25` prebuilds (#1013)
m4heshd May 29, 2023
38554b5
8.5.0
mceachen Jul 19, 2023
40be681
Add support for electron `v26` prebuilds (#1042)
m4heshd Aug 17, 2023
f97ec71
8.5.1
mceachen Aug 17, 2023
37e07d4
prebuild for Node on macOS+arm64 and Windows+ia32 (#1002)
verhovsky Aug 24, 2023
5a0ee2f
8.5.2
mceachen Aug 24, 2023
653eaaa
Upgrade dependencies (#1052)
mceachen Sep 2, 2023
0092d43
Fix db::serialize() crashing with Electron (#1036)
DamienEspitallier Sep 2, 2023
5f7f4d0
Fix: Create target directory when copying (#1030)
felixrieseberg Sep 2, 2023
9573de8
fix result code type in SQliteError documentation (#1009)
cedricvanrompay Sep 2, 2023
ccf0b35
Remove SQLITE_INTROSPECTION_PRAGMAS compile-time option (#927)
threema-danilo Sep 2, 2023
3400cb0
feat(database): now `nativeBinding` supports addon object (#974)
destyk Sep 2, 2023
f11c36c
general cleanup
JoshuaWise Sep 2, 2023
6ee3399
upgraded to SQLite 3.43.0
JoshuaWise Sep 2, 2023
69fbb70
updated test
JoshuaWise Sep 2, 2023
8ed0172
updated test
JoshuaWise Sep 2, 2023
6c99a02
updated test
JoshuaWise Sep 2, 2023
a328947
updated test
JoshuaWise Sep 2, 2023
3b6410e
updated test
JoshuaWise Sep 2, 2023
bed16bf
updated test
JoshuaWise Sep 2, 2023
ae23e69
8.6.0
JoshuaWise Sep 2, 2023
b7eb1ff
Update SQLite to version 3.43.1 (#1077)
JoshuaWise Sep 30, 2023
e3f916d
8.7.0
mceachen Sep 30, 2023
051b503
Update compilation.md (#1079)
Prinzhorn Oct 6, 2023
a0189f9
Add support for electron `v27` prebuilds (#1082)
m4heshd Oct 10, 2023
ce10309
update prebuild and remove node-gyp version override (#1059)
neoxpert Oct 10, 2023
5a6f47b
Stop building and testing against Node `v16` (runtime EOL) (#1061)
m4heshd Oct 10, 2023
3e0b2df
Update SQLite to version 3.43.2 (#1083)
JoshuaWise Oct 10, 2023
007d43e
9.0.0
mceachen Oct 10, 2023
12fde8d
Update SQLite to version 3.44.0 (#1097)
JoshuaWise Nov 8, 2023
20e96c4
9.1.0
mceachen Nov 8, 2023
7908b5c
Fix macOS and future Alpine prebuilds (#1100)
mceachen Nov 9, 2023
6108911
9.1.1
JoshuaWise Nov 9, 2023
e014274
Upgrade GitHub actions/checkout and actions/setup-node (#1107)
cclauss Nov 21, 2023
8a60aa4
Update SQLite to version 3.44.2 (#1112)
JoshuaWise Dec 2, 2023
746d8e3
9.2.0
mceachen Dec 2, 2023
8cd3d46
Add support for electron `v28` prebuilds (#1113)
m4heshd Dec 5, 2023
2c79043
9.2.1
mceachen Dec 5, 2023
2babc21
9.2.2
mceachen Dec 5, 2023
5a86096
Update SQLite to version 3.45.0 (#1130)
JoshuaWise Jan 16, 2024
bd55c76
9.3.0
mceachen Jan 17, 2024
fd93895
Update SQLite to version 3.45.1 (#1133)
JoshuaWise Feb 2, 2024
543c0f5
9.4.0
mceachen Feb 2, 2024
2dabc23
Build `arm` based macOS builds natively (#1135)
m4heshd Feb 8, 2024
f60d032
Add support for Windows `arm64` prebuilds (#1141)
m4heshd Feb 10, 2024
a36b8e4
9.4.1
mceachen Feb 10, 2024
d24234b
Add support for electron `v29` prebuilds (#1147)
m4heshd Feb 21, 2024
a28bf42
9.4.2
mceachen Feb 21, 2024
eada642
Temporarily disable builds for electron `v29` (#1148)
m4heshd Feb 22, 2024
b35e089
9.4.3
mceachen Feb 22, 2024
60763a0
fix: support SpatiaLite extension (#1137)
merceyz Feb 22, 2024
e28e04a
Support builds for Electron v29 (#1151)
neoxpert Apr 3, 2024
e7d0edb
Keep GitHub Actions up to date with GitHub's Dependabot (#1165)
cclauss Apr 3, 2024
ac8f293
Clarify error handling behavior for nested transactions in docs (#1160)
nikwen Apr 3, 2024
0374765
Bump the github-actions group with 4 updates (#1167)
dependabot[bot] Apr 3, 2024
080f863
9.4.4
JoshuaWise Apr 3, 2024
3e629d9
added flag for new python version in build jobs
JoshuaWise Apr 3, 2024
126bb57
Merge branch 'master' of github.com:JoshuaWise/better-sqlite3
JoshuaWise Apr 3, 2024
1220731
fixed typo
JoshuaWise Apr 3, 2024
030801f
selectively add flag for macos-14
JoshuaWise Apr 3, 2024
e09670c
9.4.5
JoshuaWise Apr 3, 2024
ef6541b
Update SQLite to version 3.45.2 (#1173)
JoshuaWise Apr 10, 2024
67d69e5
9.5.0
mceachen Apr 10, 2024
920013e
Add support for electron `v30` prebuilds (#1175)
m4heshd Apr 26, 2024
1b4cdd3
Update SQLite to version 3.45.3 (#1179)
JoshuaWise Apr 26, 2024
cfc69bd
9.6.0
mceachen Apr 26, 2024
320fcaf
Update troubleshooting.md (#1178)
mceachen Apr 26, 2024
608f115
Fix python setuptools on macOS (#1181)
mceachen Apr 29, 2024
2327f9a
Add Node.js v22. Drop ancient EOL versions of Node.js and Electron (#…
mceachen May 12, 2024
a86a92d
10.0.0
mceachen May 12, 2024
4f3924c
Update SQLite to version 3.46.0 (#1190)
JoshuaWise May 30, 2024
5aa855e
10.1.0
mceachen May 30, 2024
f120eef
Drop prebuilds of Node.js v21 and Electron v25 (#1191)
mceachen May 30, 2024
afb31e0
Relax allowed timeout (GHA on macOS is slow) (#1193)
mceachen May 30, 2024
6c6b3df
10.1.1
mceachen May 31, 2024
6acc3fc
11.0.0
mceachen May 31, 2024
5ae61c3
Support builds for Electron v31 (#1200)
neoxpert Jun 11, 2024
7ee4464
cleaned up poorly named template
JoshuaWise Jun 11, 2024
b5d0478
Run prebuilds before publish (#1202)
mceachen Jun 12, 2024
b615a52
11.1.0
mceachen Jun 12, 2024
74f7c4a
Fix macOS x64 builds (#1210)
m4heshd Jun 27, 2024
8b74050
error C2099: initializer is not a constant (#1208)
LqdBcnAtWork Jun 27, 2024
309cb37
11.1.1
mceachen Jun 27, 2024
50ace3b
Use node bullseye to build arm images (#1216)
viceice Jul 2, 2024
254b8e9
11.1.2
mceachen Jul 2, 2024
6eb32eb
Support builds for Electron v32 (#1226)
neoxpert Aug 13, 2024
31e0e0c
Adding SQLITE_ENABLE_DBSTAT_VTAB (#1228)
mikeburgh Aug 15, 2024
c3c2393
11.2.0
mceachen Aug 21, 2024
2bf975e
Prebuild for Electron 32 (#1242)
neoxpert Aug 21, 2024
7896456
11.2.1
mceachen Aug 21, 2024
f396b5b
Add new patch infra. (#1239)
mceachen Aug 29, 2024
8b584ef
Update SQLite to version 3.46.1 (#1252)
JoshuaWise Sep 10, 2024
f01e0e4
11.3.0
mceachen Sep 10, 2024
abd3546
Prebuild for Electron 33 (#1279)
oliverschwendener Oct 17, 2024
667d2f3
11.4.0
mceachen Oct 17, 2024
698cc85
Added NodeJS 23 Support (#1283)
neoxpert Oct 20, 2024
487007a
Update SQLite to version 3.47.0 (#1284)
JoshuaWise Oct 21, 2024
5d410bb
11.5.0
mceachen Oct 21, 2024
ab644ac
Issue #1271: Added missing SQLite Error code identifier. (#1273)
Meztlicoatl Oct 29, 2024
9fc53fe
ran lzz
JoshuaWise Oct 29, 2024
b34c9f5
added new result codes
JoshuaWise Oct 29, 2024
1fc33f2
Update SQLite to version 3.47.1 (#1296)
JoshuaWise Nov 26, 2024
03f2463
11.6.0
mceachen Nov 26, 2024
b036602
Update SQLite to version 3.47.2 (#1303)
JoshuaWise Dec 8, 2024
61b7e58
11.7.0
mceachen Dec 8, 2024
08eb06d
feat: add linux/arm64 prebuilds for electron (#1306)
SvetBorislavov Dec 27, 2024
9050fc1
11.7.1
mceachen Dec 27, 2024
a1729b1
fix: electron prebuilds on linux arm (#1311)
SvetBorislavov Jan 4, 2025
618714a
11.7.2
mceachen Jan 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add new patch infra. (#1239)
* Add new patch infra. See #1208 and #1238

* add patches to CODEOWNERS

* revert CODEOWNERS addition
  • Loading branch information
mceachen authored Aug 29, 2024
commit f396b5b60e7ee00ef5631bd3c79479fdf66e895e
9 changes: 9 additions & 0 deletions deps/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ make sqlite3.c > /dev/null || exit 1
echo "copying amalgamation..."
cp sqlite3.c sqlite3.h sqlite3ext.h "$OUTPUT/" || exit 1

echo "applying patches..."
cd "$DEPS" || exit 1
for patch in patches/*.patch; do
# If a patch fails, just skip it an move on.
# By default `patch` tries to be clever and reverse the patch, so we have to specify `--forward`.
# If the patch fails, we # don't write .orig and .rej files, so we have to specify `--no-backup-if-mismatch` and `--reject-file=-`.
patch --batch --forward --no-backup-if-mismatch --reject-file=- -p2 < "$patch"
done

echo "updating gyp configs..."
GYP="$DEPS/defines.gypi"
printf "# THIS FILE IS AUTOMATICALLY GENERATED BY deps/download.sh (DO NOT EDIT)\n\n{\n 'defines': [\n" > "$GYP"
Expand Down
15 changes: 15 additions & 0 deletions deps/patches/1208.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/deps/sqlite3/sqlite3.c b/deps/sqlite3/sqlite3.c
index b1a807f..38bd1e6 100644
--- a/deps/sqlite3/sqlite3.c
+++ b/deps/sqlite3/sqlite3.c
@@ -24887,8 +24887,8 @@ static const struct {
/* 1 */ { 6, "minute", 7.7379e+12, 60.0 },
/* 2 */ { 4, "hour", 1.2897e+11, 3600.0 },
/* 3 */ { 3, "day", 5373485.0, 86400.0 },
- /* 4 */ { 5, "month", 176546.0, 30.0*86400.0 },
- /* 5 */ { 4, "year", 14713.0, 365.0*86400.0 },
+ /* 4 */ { 5, "month", 176546.0, 2592000.0 },
+ /* 5 */ { 4, "year", 14713.0, 31536000.0 },
};

/*