Skip to content

Commit 9f4fe6f

Browse files
committed
SQLite 3.49.1.
1 parent 7870ce0 commit 9f4fe6f

File tree

12 files changed

+25
-27
lines changed

12 files changed

+25
-27
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ jobs:
7373

7474
- name: Collect coverage
7575
run: |
76-
go get -tool github.com/dave/courtney@v0.4.3
77-
go get -u golang.org/x/tools@v0.30.0
78-
go mod tidy
76+
go get -tool github.com/dave/courtney@v0.4.4
7977
go tool courtney
8078
if: |
8179
github.event_name == 'push' &&

embed/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Embeddable Wasm build of SQLite
22

3-
This folder includes an embeddable Wasm build of SQLite 3.49.0 for use with
3+
This folder includes an embeddable Wasm build of SQLite 3.49.1 for use with
44
[`github.com/ncruces/go-sqlite3`](https://pkg.go.dev/github.com/ncruces/go-sqlite3).
55

66
The following optional features are compiled in:

embed/bcw2/bcw2.wasm

-2.74 KB
Binary file not shown.

embed/bcw2/bcw2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func Test_bcw2(t *testing.T) {
5353
if err != nil {
5454
t.Fatal(err)
5555
}
56-
if version != "3.49.0" {
56+
if version != "3.50.0" {
5757
t.Error(version)
5858
}
5959
}

embed/bcw2/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ mkdir -p build/ext/
1313
cp "$ROOT"/sqlite3/*.[ch] build/
1414
cp "$ROOT"/sqlite3/*.patch build/
1515

16-
# https://sqlite.org/src/info/cc3ce784b0feea2f
17-
curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=cc3ce784 | tar xz
16+
# https://sqlite.org/src/info/c09656c62155a6e8
17+
curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=c09656c6 | tar xz
1818

1919
cd sqlite
2020
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then

embed/init_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Test_init(t *testing.T) {
1919
if err != nil {
2020
t.Fatal(err)
2121
}
22-
if version != "3.49.0" {
22+
if version != "3.49.1" {
2323
t.Error(version)
2424
}
2525
}

embed/sqlite3.wasm

64 Bytes
Binary file not shown.

sqlite3/busy_timeout.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# handle, and interrupt, sqlite3_busy_timeout.
33
--- sqlite3.c.orig
44
+++ sqlite3.c
5-
@@ -183054,7 +183054,7 @@
5+
@@ -183355,7 +183355,7 @@
66
if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
77
#endif
88
if( ms>0 ){

sqlite3/download.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
cd -P -- "$(dirname -- "$0")"
55

6-
curl -#OL "https://sqlite.org/2025/sqlite-amalgamation-3490000.zip"
6+
curl -#OL "https://sqlite.org/2025/sqlite-amalgamation-3490100.zip"
77
unzip -d . sqlite-amalgamation-*.zip
88
mv sqlite-amalgamation-*/sqlite3.c .
99
mv sqlite-amalgamation-*/sqlite3.h .
@@ -19,30 +19,30 @@ rm -rf sqlite-amalgamation-*
1919

2020
mkdir -p ext/
2121
cd ext/
22-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/anycollseq.c"
23-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/base64.c"
24-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/decimal.c"
25-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/ieee754.c"
26-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/regexp.c"
27-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/series.c"
28-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/spellfix.c"
29-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/ext/misc/uint.c"
22+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/anycollseq.c"
23+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/base64.c"
24+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/decimal.c"
25+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/ieee754.c"
26+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/regexp.c"
27+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/series.c"
28+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/spellfix.c"
29+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/ext/misc/uint.c"
3030
cd ~-
3131

3232
cd ../vfs/tests/mptest/testdata/
33-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/mptest/config01.test"
34-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/mptest/config02.test"
35-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/mptest/crash01.test"
36-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/mptest/crash02.subtest"
37-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/mptest/multiwrite01.test"
33+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/mptest/config01.test"
34+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/mptest/config02.test"
35+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/mptest/crash01.test"
36+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/mptest/crash02.subtest"
37+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/mptest/multiwrite01.test"
3838
cd ~-
3939

4040
cd ../vfs/tests/mptest/wasm/
41-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/mptest/mptest.c"
41+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/mptest/mptest.c"
4242
cd ~-
4343

4444
cd ../vfs/tests/speedtest1/wasm/
45-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.0/test/speedtest1.c"
45+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.49.1/test/speedtest1.c"
4646
cd ~-
4747

4848
cat *.patch | patch -p0 --no-backup-if-mismatch

sqlite3/vfs_find.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Remove VFS registration. Go handles it.
22
--- sqlite3.c.orig
33
+++ sqlite3.c
4-
@@ -26623,7 +26623,7 @@
4+
@@ -26725,7 +26725,7 @@
55
sqlite3_free(p);
66
return sqlite3_os_init();
77
}
@@ -10,7 +10,7 @@
1010
/*
1111
** The list of all registered VFS implementations.
1212
*/
13-
@@ -26720,7 +26720,7 @@
13+
@@ -26822,7 +26822,7 @@
1414
sqlite3_mutex_leave(mutex);
1515
return SQLITE_OK;
1616
}

vfs/tests/mptest/wasm/mptest.wasm

64 Bytes
Binary file not shown.
64 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)