1
0

nowasm.go 686 B

12345678910111213141516171819
  1. //go:build nowasm || !(cgo && ((linux && amd64) || (linux && arm64) || (darwin && amd64) || (darwin && arm64) || (windows && amd64)))
  2. package wasm
  3. import (
  4. "context"
  5. "google.golang.org/grpc"
  6. "google.golang.org/grpc/codes"
  7. "google.golang.org/grpc/status"
  8. )
  9. func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any, opts ...grpc.CallOption) error {
  10. return status.Error(codes.FailedPrecondition, "sqlc built without wasmtime support")
  11. }
  12. func (r *Runner) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error) {
  13. return nil, status.Error(codes.Unimplemented, codes.Unimplemented.String())
  14. }