MCPcopy
hub / github.com/sqlc-dev/sqlc / wrapper

Struct wrapper

internal/ext/handler.go:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21type wrapper struct {
22 fn func(context.Context, *plugin.GenerateRequest) (*plugin.GenerateResponse, error)
23}
24
25func (w *wrapper) Generate(ctx context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error) {
26 return w.fn(ctx, req)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected