File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- //go:build !(cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64)))
1+ //go:build nowasm || !(cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64)))
22
33package wasm
44
55import (
66 "fmt"
7+ "context"
78
89 "github.com/kyleconroy/sqlc/internal/plugin"
910)
1011
1112type Runner struct {
13+ URL string
14+ SHA256 string
1215}
1316
14- func (r * Runner ) Generate (req * plugin.CodeGenRequest ) (* plugin.CodeGenResponse , error ) {
17+ func (r * Runner ) Generate (ctx context. Context , req * plugin.CodeGenRequest ) (* plugin.CodeGenResponse , error ) {
1518 return nil , fmt .Errorf ("sqlc built without wasmtime support" )
1619}
Original file line number Diff line number Diff line change 1- //go:build cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64))
1+ //go:build !nowasm && cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64))
22
33// The above build constraint is based of the cgo directives in this file:
44// https://github.com/bytecodealliance/wasmtime-go/blob/main/ffi.go
You can’t perform that action at this time.
0 commit comments