Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions internal/ext/wasm/nowasm.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,17 +3,12 @@
package wasm

import (
"fmt"
"context"
"fmt"

"github.com/sqlc-dev/sqlc/internal/plugin"
)

typeRunnerstruct{
URLstring
SHA256string
}

func (r*Runner) Generate(ctx context.Context, req*plugin.CodeGenRequest) (*plugin.CodeGenResponse, error){
returnnil, fmt.Errorf("sqlc built without wasmtime support")
}
7 changes: 7 additions & 0 deletions internal/ext/wasm/runner.go
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
package wasm

typeRunnerstruct{
URLstring
SHA256string
Env []string
}
6 changes: 0 additions & 6 deletions internal/ext/wasm/wasm.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,12 +44,6 @@ func cacheDir() (string, error){
returnfilepath.Join(cacheHome, "sqlc"), nil
}

typeRunnerstruct{
URLstring
SHA256string
Env []string
}

varflight singleflight.Group

// Verify the provided sha256 is valid.
Expand Down