Skip to content

Commit c4f254b

Browse files
committed
SQLite 3.51.2.
1 parent c97c5a1 commit c4f254b

11 files changed

Lines changed: 18 additions & 18 deletions

File tree

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.51.1 for use with
3+
This folder includes an embeddable Wasm build of SQLite 3.51.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/bcw2/bcw2.wasm

859 Bytes
Binary file not shown.

embed/bcw2/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ cp "$ROOT"/sqlite3/*.[ch] build/
1515
cp "$ROOT"/sqlite3/*.patch build/
1616
cd sqlite/
1717

18-
# https://sqlite.org/src/info/f273f6b8245c5dca
19-
curl -#L https://github.com/sqlite/sqlite/archive/7c126d7.tar.gz | tar xz --strip-components=1
20-
# curl -#L https://sqlite.org/src/tarball/sqlite.tar.gz?r=f273f6b824 | tar xz --strip-components=1
18+
# https://sqlite.org/src/info/d577b2a2b2b04ff7
19+
curl -#L https://github.com/sqlite/sqlite/archive/e34ccf8.tar.gz | tar xz --strip-components=1
20+
# curl -#L https://sqlite.org/src/tarball/sqlite.tar.gz?r=d577b2a2b2 | tar xz --strip-components=1
2121

2222
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
2323
MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c "OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_ENABLE_ORDERED_SET_AGGREGATES"

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.51.1" {
22+
if version != "3.51.2" {
2323
t.Error(version)
2424
}
2525
}

embed/sqlite3.wasm

151 Bytes
Binary file not shown.

gormlite/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/ncruces/go-sqlite3/gormlite
33
go 1.24.0
44

55
require (
6-
github.com/ncruces/go-sqlite3 v0.30.3
6+
github.com/ncruces/go-sqlite3 v0.30.4
77
gorm.io/gorm v1.31.1
88
)
99

@@ -12,6 +12,6 @@ require (
1212
github.com/jinzhu/now v1.1.5 // indirect
1313
github.com/ncruces/julianday v1.0.0 // indirect
1414
github.com/tetratelabs/wazero v1.11.0 // indirect
15-
golang.org/x/sys v0.39.0 // indirect
16-
golang.org/x/text v0.32.0 // indirect
15+
golang.org/x/sys v0.40.0 // indirect
16+
golang.org/x/text v0.33.0 // indirect
1717
)

gormlite/go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD
22
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
33
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
44
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
5-
github.com/ncruces/go-sqlite3 v0.30.3 h1:X/CgWW9GzmIAkEPrifhKqf0cC15DuOVxAJaHFTTAURQ=
6-
github.com/ncruces/go-sqlite3 v0.30.3/go.mod h1:AxKu9sRxkludimFocbktlY6LiYSkxiI5gTA8r+os/Nw=
5+
github.com/ncruces/go-sqlite3 v0.30.4 h1:j9hEoOL7f9ZoXl8uqXVniaq1VNwlWAXihZbTvhqPPjA=
6+
github.com/ncruces/go-sqlite3 v0.30.4/go.mod h1:7WR20VSC5IZusKhUdiR9y1NsUqnZgqIYCmKKoMEYg68=
77
github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M=
88
github.com/ncruces/julianday v1.0.0/go.mod h1:Dusn2KvZrrovOMJuOt0TNXL6tB7U2E8kvza5fFc9G7g=
99
github.com/tetratelabs/wazero v1.11.0 h1:+gKemEuKCTevU4d7ZTzlsvgd1uaToIDtlQlmNbwqYhA=
1010
github.com/tetratelabs/wazero v1.11.0/go.mod h1:eV28rsN8Q+xwjogd7f4/Pp4xFxO7uOGbLcD/LzB1wiU=
11-
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
12-
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
13-
golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
14-
golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
11+
golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
12+
golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
13+
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
14+
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
1515
gorm.io/gorm v1.31.1 h1:7CA8FTFz/gRfgqgpeKIBcervUn3xSyPUmr6B2WXJ7kg=
1616
gorm.io/gorm v1.31.1/go.mod h1:XyQVbO2k6YkOis7C2437jSit3SsDK72s7n7rsSHd+Gs=

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-
@@ -186667,7 +186667,7 @@
5+
@@ -186725,7 +186725,7 @@
66
if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
77
#endif
88
if( ms>0 ){

sqlite3/download.sh

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

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

6-
curl -#OL "https://sqlite.org/2025/sqlite-autoconf-3510100.tar.gz"
6+
curl -#OL "https://sqlite.org/2026/sqlite-autoconf-3510200.tar.gz"
77

88
# Verify download.
99
if hash=$(openssl dgst -sha3-256 sqlite-autoconf-*.tar.gz); then
10-
if ! [[ $hash =~ 9b2b1e73f577def1d5b75c5541555a7f42e6e073ad19f7a9118478389c9bbd9b ]]; then
10+
if ! [[ $hash =~ e0f7ae1c28c4fa551a2ffe8bdfafafa90613dabcef9553050892d02240b44f1d ]]; then
1111
echo $hash
1212
exit 1
1313
fi
@@ -23,7 +23,7 @@ mv sqlite-*/sqlite3.h .
2323
mv sqlite-*/sqlite3ext.h .
2424
rm -r sqlite-*
2525

26-
GITHUB_TAG="https://github.com/sqlite/sqlite/raw/version-3.51.1"
26+
GITHUB_TAG="https://github.com/sqlite/sqlite/raw/version-3.51.2"
2727

2828
mkdir -p ext/
2929
cd ext/

vfs/tests/mptest/wasm/mptest.wasm

151 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)