File tree Expand file tree Collapse file tree 8 files changed +13
-48
lines changed Expand file tree Collapse file tree 8 files changed +13
-48
lines changed Original file line number Diff line number Diff line change 7
7
- ' **.go'
8
8
- ' **.mod'
9
9
- ' **.wasm'
10
+ - ' **.yml'
10
11
pull_request :
11
12
branches : [ 'main' ]
12
13
paths :
13
14
- ' **.go'
14
15
- ' **.mod'
15
16
- ' **.wasm'
17
+ - ' **.yml'
16
18
workflow_dispatch :
17
19
18
20
jobs :
Original file line number Diff line number Diff line change 1
1
module github.com/ncruces/go-sqlite3/embed/bcw2
2
2
3
- go 1.22
3
+ go 1.22.0
4
4
5
- toolchain go1.23 .0
5
+ toolchain go1.24 .0
6
6
7
7
require github.com/ncruces/go-sqlite3 v0.23.0
8
8
Original file line number Diff line number Diff line change 1
1
module github.com/ncruces/go-sqlite3
2
2
3
- go 1.22
3
+ go 1.22.0
4
4
5
- toolchain go1.23 .0
5
+ toolchain go1.24 .0
6
6
7
7
require (
8
8
github.com/ncruces/julianday v1.0.0
9
9
github.com/ncruces/sort v0.1.5
10
- github.com/tetratelabs/wazero v1.8.2
10
+ github.com/tetratelabs/wazero v1.9.0
11
11
golang.org/x/crypto v0.33.0
12
12
golang.org/x/sys v0.30.0
13
13
)
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ github.com/ncruces/sort v0.1.5 h1:fiFWXXAqKI8QckPf/6hu/bGFwcEPrirIOFaJqWujs4k=
8
8
github.com/ncruces/sort v0.1.5 /go.mod h1:obJToO4rYr6VWP0Uw5FYymgYGt3Br4RXcs/JdKaXAPk =
9
9
github.com/psanford/httpreadat v0.1.0 h1:VleW1HS2zO7/4c7c7zNl33fO6oYACSagjJIyMIwZLUE =
10
10
github.com/psanford/httpreadat v0.1.0 /go.mod h1:Zg7P+TlBm3bYbyHTKv/EdtSJZn3qwbPwpfZ/I9GKCRE =
11
- github.com/tetratelabs/wazero v1.8.2 h1:yIgLR/b2bN31bjxwXHD8a3d+BogigR952csSDdLYEv4 =
12
- github.com/tetratelabs/wazero v1.8.2 /go.mod h1:yAI0XTsMBhREkM/YDAK/zNou3GoiAce1P6+rp/wQhjs =
11
+ github.com/tetratelabs/wazero v1.9.0 h1:IcZ56OuxrtaEz8UYNRHBrUa9bYeX9oVY93KspZZBf/I =
12
+ github.com/tetratelabs/wazero v1.9.0 /go.mod h1:TSbcXCfFP0L2FGkRPxHphadXPjo1T6W+CseNNY7EkjM =
13
13
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus =
14
14
golang.org/x/crypto v0.33.0 /go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M =
15
15
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w =
Original file line number Diff line number Diff line change 1
1
module github.com/ncruces/go-sqlite3/gormlite
2
2
3
- go 1.22
3
+ go 1.22.0
4
4
5
- toolchain go1.23 .0
5
+ toolchain go1.24 .0
6
6
7
7
require (
8
8
github.com/ncruces/go-sqlite3 v0.23.0
Original file line number Diff line number Diff line change @@ -7,18 +7,12 @@ import (
7
7
"github.com/tetratelabs/wazero"
8
8
9
9
"github.com/ncruces/go-sqlite3"
10
- "github.com/ncruces/go-sqlite3/internal/util"
11
10
)
12
11
13
12
// notest
14
13
15
14
func init () {
16
- if util .CompilerSupported () {
17
- sqlite3 .RuntimeConfig = wazero .NewRuntimeConfigCompiler ()
18
- } else {
19
- sqlite3 .RuntimeConfig = wazero .NewRuntimeConfigInterpreter ()
20
- }
21
- sqlite3 .RuntimeConfig = sqlite3 .RuntimeConfig .WithMemoryLimitPages (512 )
15
+ sqlite3 .RuntimeConfig = wazero .NewRuntimeConfig ().WithMemoryLimitPages (512 )
22
16
if os .Getenv ("CI" ) != "" {
23
17
path := filepath .Join (os .TempDir (), "wazero" )
24
18
if err := os .MkdirAll (path , 0777 ); err == nil {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -47,11 +47,7 @@ func compileSQLite() {
47
47
ctx := context .Background ()
48
48
cfg := RuntimeConfig
49
49
if cfg == nil {
50
- if util .CompilerSupported () {
51
- cfg = wazero .NewRuntimeConfigCompiler ()
52
- } else {
53
- cfg = wazero .NewRuntimeConfigInterpreter ()
54
- }
50
+ cfg = wazero .NewRuntimeConfig ()
55
51
if bits .UintSize < 64 {
56
52
cfg = cfg .WithMemoryLimitPages (512 ) // 32MB
57
53
} else {
You can’t perform that action at this time.
0 commit comments