SQLite 3.46.1.

This commit is contained in:
Nuno Cruces
2024-08-13 15:19:30 +01:00
parent bd141fec92
commit 6a1973f530
12 changed files with 59 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
# 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
[Wal2](https://www.sqlite.org/cgi/src/doc/wal2/doc/wal2.md) patches.

Binary file not shown.

View File

@@ -1,11 +1,10 @@
package bcw2_test
package bcw2
import (
"path/filepath"
"testing"
"github.com/ncruces/go-sqlite3/driver"
_ "github.com/ncruces/go-sqlite3/embed/bcw2"
"github.com/ncruces/go-sqlite3/vfs"
)
@@ -37,4 +36,13 @@ func Test_bcw2(t *testing.T) {
if err != nil {
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)
}
}