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

Method Prepare

internal/cmd/vet.go:334–340  ·  view source on GitHub ↗
(ctx context.Context, name, query string)

Source from the content-addressed store, hash-verified

332}
333
334func (p *dbPreparer) Prepare(ctx context.Context, name, query string) error {
335 s, err := p.db.PrepareContext(ctx, query)
336 if s != nil {
337 s.Close()
338 }
339 return err
340}
341
342type explainer interface {
343 Explain(context.Context, string, ...*plugin.Parameter) (*vetEngineOutput, error)

Callers

nothing calls this directly

Calls 2

PrepareContextMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected