Skip to content

Commit d5d7cd1

Browse files
committed
SQLite 3.43.2.
1 parent a33a187 commit d5d7cd1

File tree

13 files changed

+44
-30
lines changed

13 files changed

+44
-30
lines changed

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.43.1 for use with
3+
This folder includes an embeddable WASM build of SQLite 3.43.2 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/sqlite3.wasm

291 Bytes
Binary file not shown.

sqlite3/download.sh

Lines changed: 15 additions & 15 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/2023/sqlite-amalgamation-3430100.zip"
6+
curl -#OL "https://sqlite.org/2023/sqlite-amalgamation-3430200.zip"
77
unzip -d . sqlite-amalgamation-*.zip
88
mv sqlite-amalgamation-*/sqlite3* .
99
rm -rf sqlite-amalgamation-*
@@ -12,24 +12,24 @@ cat *.patch | patch --posix
1212

1313
mkdir -p ext/
1414
cd ext/
15-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/decimal.c"
16-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/uint.c"
17-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/uuid.c"
18-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/base64.c"
19-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/regexp.c"
20-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/series.c"
21-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/ext/misc/anycollseq.c"
15+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/decimal.c"
16+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/uint.c"
17+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/uuid.c"
18+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/base64.c"
19+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/regexp.c"
20+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/series.c"
21+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/ext/misc/anycollseq.c"
2222
cd ~-
2323

2424
cd ../vfs/tests/mptest/testdata/
25-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/mptest/mptest.c"
26-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/mptest/config01.test"
27-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/mptest/config02.test"
28-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/mptest/crash01.test"
29-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/mptest/crash02.subtest"
30-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/mptest/multiwrite01.test"
25+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/mptest/mptest.c"
26+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/mptest/config01.test"
27+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/mptest/config02.test"
28+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/mptest/crash01.test"
29+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/mptest/crash02.subtest"
30+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/mptest/multiwrite01.test"
3131
cd ~-
3232

3333
cd ../vfs/tests/speedtest1/testdata/
34-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.1/test/speedtest1.c"
34+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.43.2/test/speedtest1.c"
3535
cd ~-

vfs/tests/mptest/mptest_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package mptest
22

33
import (
44
"bytes"
5+
"compress/bzip2"
56
"context"
67
"crypto/rand"
78
"embed"
@@ -24,8 +25,8 @@ import (
2425
"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"
2526
)
2627

27-
//go:embed testdata/mptest.wasm
28-
var binary []byte
28+
//go:embed testdata/mptest.wasm.bz2
29+
var compressed string
2930

3031
//go:embed testdata/*.*test
3132
var scripts embed.FS
@@ -48,6 +49,11 @@ func TestMain(m *testing.M) {
4849
panic(err)
4950
}
5051

52+
binary, err := io.ReadAll(bzip2.NewReader(strings.NewReader(compressed)))
53+
if err != nil {
54+
panic(err)
55+
}
56+
5157
module, err = rt.CompileModule(ctx, binary)
5258
if err != nil {
5359
panic(err)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
mptest.wasm filter=lfs diff=lfs merge=lfs -text
1+
mptest.wasm.bz2 filter=lfs diff=lfs merge=lfs -text
22
*.*test -crlf

vfs/tests/mptest/testdata/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ WASI_SDK="$ROOT/tools/wasi-sdk-20.0/bin"
2828
--enable-simd --enable-mutable-globals --enable-multivalue \
2929
--enable-bulk-memory --enable-reference-types \
3030
--enable-nontrapping-float-to-int --enable-sign-ext
31-
mv mptest.tmp mptest.wasm
31+
mv mptest.tmp mptest.wasm
32+
bzip2 -9f mptest.wasm

vfs/tests/mptest/testdata/mptest.wasm

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:816ddd36a255d2b3995f75924bdebd9dc7c4378eeccbe28176751434cfb788ca
3+
size 508404

vfs/tests/speedtest1/speedtest1_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package speedtest1
22

33
import (
44
"bytes"
5+
"compress/bzip2"
56
"context"
67
"crypto/rand"
78
"flag"
@@ -23,8 +24,8 @@ import (
2324
_ "github.com/ncruces/go-sqlite3/vfs/memdb"
2425
)
2526

26-
//go:embed testdata/speedtest1.wasm
27-
var binary []byte
27+
//go:embed testdata/speedtest1.wasm.bz2
28+
var compressed string
2829

2930
var (
3031
rt wazero.Runtime
@@ -45,6 +46,11 @@ func TestMain(m *testing.M) {
4546
panic(err)
4647
}
4748

49+
binary, err := io.ReadAll(bzip2.NewReader(strings.NewReader(compressed)))
50+
if err != nil {
51+
panic(err)
52+
}
53+
4854
module, err = rt.CompileModule(ctx, binary)
4955
if err != nil {
5056
panic(err)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
speedtest1.wasm filter=lfs diff=lfs merge=lfs -text
1+
speedtest1.wasm.bz2 filter=lfs diff=lfs merge=lfs -text

0 commit comments

Comments
 (0)