File tree Expand file tree Collapse file tree 12 files changed +18
-185
lines changed Expand file tree Collapse file tree 12 files changed +18
-185
lines changed Original file line number Diff line number Diff line change 1
1
/.idea /
2
2
__pycache__
3
- cache
Original file line number Diff line number Diff line change @@ -54,18 +54,3 @@ internal/python/ast/ast.pb.go: protos/python/ast.proto
54
54
--go_out=. \
55
55
--go_opt=module=github.com/kyleconroy/sqlc \
56
56
./protos/python/ast.proto
57
-
58
- wasm : cache/sqlc-codegen-python.wasm cache/sqlc-codegen-go.wasm cache/sqlc-codegen-kotlin.wasm
59
-
60
- cache/sqlc-codegen-python.wasm : cmd/sqlc-codegen-python/main.go
61
- cd cmd/sqlc-codegen-python && tinygo build -o ../../cache/sqlc-codegen-python.wasm -gc=leaking -scheduler=none -wasm-abi=generic -target=wasi
62
-
63
- cache/sqlc-codegen-kotlin.wasm : cmd/sqlc-codegen-kotlin/main.go
64
- cd cmd/sqlc-codegen-kotlin && tinygo build -o ../../cache/sqlc-codegen-kotlin.wasm -gc=leaking -wasm-abi=generic -target=wasi
65
-
66
- cache/sqlc-codegen-go.wasm : cmd/sqlc-codegen-go/main.go
67
- cd cmd/sqlc-codegen-go && tinygo build -o ../../cache/sqlc-codegen-go.wasm -gc=leaking -wasm-abi=generic -target=wasi
68
-
69
-
70
-
71
-
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220209173558-ad29539cd2e9
7
- github.com/bytecodealliance/wasmtime-go v0.34 .0
7
+ github.com/bytecodealliance/wasmtime-go v0.35 .0
8
8
github.com/davecgh/go-spew v1.1.1
9
9
github.com/go-sql-driver/mysql v1.6.0
10
10
github.com/google/go-cmp v0.5.7
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLj
7
7
github.com/benbjohnson/clock v1.1.0 /go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA =
8
8
github.com/bytecodealliance/wasmtime-go v0.34.0 h1:PaWS0DUusaXaU3aNoSYjag6WmuxjyPYBHgkrC4EXips =
9
9
github.com/bytecodealliance/wasmtime-go v0.34.0 /go.mod h1:q320gUxqyI8yB+ZqRuaJOEnGkAnHh6WtJjMaT2CW4wI =
10
+ github.com/bytecodealliance/wasmtime-go v0.35.0 h1:VZjaZ0XOY0qp9TQfh0CQj9zl/AbdeXePVTALy8V1sKs =
11
+ github.com/bytecodealliance/wasmtime-go v0.35.0 /go.mod h1:q320gUxqyI8yB+ZqRuaJOEnGkAnHh6WtJjMaT2CW4wI =
10
12
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I =
11
13
github.com/cockroachdb/apd v1.1.0 /go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ =
12
14
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e /go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4 =
Original file line number Diff line number Diff line change
1
+ //go:build !wasmtime
2
+
3
+ package wasm
4
+
5
+ import (
6
+ "fmt"
7
+
8
+ "github.com/kyleconroy/sqlc/internal/plugin"
9
+ )
10
+
11
+ func Generate (req * plugin.CodeGenRequest ) (* plugin.CodeGenResponse , error ) {
12
+ return nil , fmt .Errorf ("sqlc built without wasmtime support" )
13
+ }
Original file line number Diff line number Diff line change
1
+ //go:build wasmtime
2
+
1
3
package wasm
2
4
3
5
import (
You can’t perform that action at this time.
0 commit comments