mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
SQLite 3.46.1.
This commit is contained in:
2
.github/workflows/cross.yml
vendored
2
.github/workflows/cross.yml
vendored
@@ -13,4 +13,4 @@ jobs:
|
|||||||
with: { go-version: stable }
|
with: { go-version: stable }
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: .github/workflows/cross.sh
|
run: .github/workflows/cross.sh
|
||||||
2
.github/workflows/repro.sh
vendored
2
.github/workflows/repro.sh
vendored
@@ -31,4 +31,4 @@ util/vtabutil/parse/download.sh
|
|||||||
util/vtabutil/parse/build.sh
|
util/vtabutil/parse/build.sh
|
||||||
|
|
||||||
# Check diffs
|
# Check diffs
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# Embeddable Wasm build of SQLite
|
# Embeddable Wasm build of SQLite
|
||||||
|
|
||||||
This folder includes an embeddable Wasm build of SQLite 3.46.0 for use with
|
This folder includes an embeddable Wasm build of SQLite 3.46.1 for use with
|
||||||
[`github.com/ncruces/go-sqlite3`](https://pkg.go.dev/github.com/ncruces/go-sqlite3).
|
[`github.com/ncruces/go-sqlite3`](https://pkg.go.dev/github.com/ncruces/go-sqlite3).
|
||||||
|
|
||||||
The following optional features are compiled in:
|
The following optional features are compiled in:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Embeddable Wasm build of SQLite
|
# Embeddable Wasm build of SQLite
|
||||||
|
|
||||||
This folder includes an embeddable Wasm build of SQLite 3.46.0, including the experimental
|
This folder includes an embeddable Wasm build of SQLite 3.46.1, including the experimental
|
||||||
[`BEGIN CONCURRENT`](https://sqlite.org/src/doc/begin-concurrent/doc/begin_concurrent.md) and
|
[`BEGIN CONCURRENT`](https://sqlite.org/src/doc/begin-concurrent/doc/begin_concurrent.md) and
|
||||||
[Wal2](https://www.sqlite.org/cgi/src/doc/wal2/doc/wal2.md) patches.
|
[Wal2](https://www.sqlite.org/cgi/src/doc/wal2/doc/wal2.md) patches.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,11 +1,10 @@
|
|||||||
package bcw2_test
|
package bcw2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ncruces/go-sqlite3/driver"
|
"github.com/ncruces/go-sqlite3/driver"
|
||||||
_ "github.com/ncruces/go-sqlite3/embed/bcw2"
|
|
||||||
"github.com/ncruces/go-sqlite3/vfs"
|
"github.com/ncruces/go-sqlite3/vfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -37,4 +36,13 @@ func Test_bcw2(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var version string
|
||||||
|
err = db.QueryRow(`SELECT sqlite_version()`).Scan(&version)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if version != "3.46.1" {
|
||||||
|
t.Error(version)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
25
embed/init_test.go
Normal file
25
embed/init_test.go
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
package embed
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/ncruces/go-sqlite3/driver"
|
||||||
|
_ "github.com/ncruces/go-sqlite3/vfs/memdb"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Test_init(t *testing.T) {
|
||||||
|
db, err := driver.Open("file:/test.db?vfs=memdb")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
defer db.Close()
|
||||||
|
|
||||||
|
var version string
|
||||||
|
err = db.QueryRow(`SELECT sqlite_version()`).Scan(&version)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if version != "3.46.1" {
|
||||||
|
t.Error(version)
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -48,4 +48,4 @@ static_assert(offsetof(union sqlite3_data, i) == 0, "Unexpected offset");
|
|||||||
static_assert(offsetof(union sqlite3_data, d) == 0, "Unexpected offset");
|
static_assert(offsetof(union sqlite3_data, d) == 0, "Unexpected offset");
|
||||||
static_assert(offsetof(union sqlite3_data, ptr) == 0, "Unexpected offset");
|
static_assert(offsetof(union sqlite3_data, ptr) == 0, "Unexpected offset");
|
||||||
static_assert(offsetof(union sqlite3_data, len) == 4, "Unexpected offset");
|
static_assert(offsetof(union sqlite3_data, len) == 4, "Unexpected offset");
|
||||||
static_assert(sizeof(union sqlite3_data) == 8, "Unexpected size");
|
static_assert(sizeof(union sqlite3_data) == 8, "Unexpected size");
|
||||||
@@ -3,7 +3,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
cd -P -- "$(dirname -- "$0")"
|
cd -P -- "$(dirname -- "$0")"
|
||||||
|
|
||||||
curl -#OL "https://sqlite.org/2024/sqlite-amalgamation-3460000.zip"
|
curl -#OL "https://sqlite.org/2024/sqlite-amalgamation-3460100.zip"
|
||||||
unzip -d . sqlite-amalgamation-*.zip
|
unzip -d . sqlite-amalgamation-*.zip
|
||||||
mv sqlite-amalgamation-*/sqlite3* .
|
mv sqlite-amalgamation-*/sqlite3* .
|
||||||
rm -rf sqlite-amalgamation-*
|
rm -rf sqlite-amalgamation-*
|
||||||
@@ -12,24 +12,24 @@ cat *.patch | patch --no-backup-if-mismatch
|
|||||||
|
|
||||||
mkdir -p ext/
|
mkdir -p ext/
|
||||||
cd ext/
|
cd ext/
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/anycollseq.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/anycollseq.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/base64.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/base64.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/decimal.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/decimal.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/ieee754.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/ieee754.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/regexp.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/regexp.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/series.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/series.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/uint.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/uint.c"
|
||||||
cd ~-
|
cd ~-
|
||||||
|
|
||||||
cd ../vfs/tests/mptest/testdata/
|
cd ../vfs/tests/mptest/testdata/
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/mptest.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/mptest.c"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/config01.test"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/config01.test"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/config02.test"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/config02.test"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/crash01.test"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/crash01.test"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/crash02.subtest"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/crash02.subtest"
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/multiwrite01.test"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/multiwrite01.test"
|
||||||
cd ~-
|
cd ~-
|
||||||
|
|
||||||
cd ../vfs/tests/speedtest1/testdata/
|
cd ../vfs/tests/speedtest1/testdata/
|
||||||
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/test/speedtest1.c"
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/test/speedtest1.c"
|
||||||
cd ~-
|
cd ~-
|
||||||
4
vfs/tests/mptest/testdata/mptest.wasm.bz2
vendored
4
vfs/tests/mptest/testdata/mptest.wasm.bz2
vendored
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:c8d77ab19944f6f5193b63bc4876936e3442c8e4176d70acc429eb3a3f33cc47
|
oid sha256:4d58c92d45fb60dc2eea461b0e7c1d512cb1dd00deafdfaab3e24b943f714f69
|
||||||
size 475768
|
size 475960
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f7f57ff476182b6ab760bf46271b9a8c92816edd05dfe153c5d744d3939344b4
|
oid sha256:90eb053e2a17bd73d8fb17f82c60e595b71018a7880c7b04d7f4b6aae187f5a5
|
||||||
size 488408
|
size 489132
|
||||||
|
|||||||
Reference in New Issue
Block a user