MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / vetQuery

Function vetQuery

internal/cmd/vet.go:686–699  ·  view source on GitHub ↗
(q *plugin.Query)

Source from the content-addressed store, hash-verified

684}
685
686func vetQuery(q *plugin.Query) *vet.Query {
687 var params []*vet.Parameter
688 for _, p := range q.Params {
689 params = append(params, &vet.Parameter{
690 Number: p.Number,
691 })
692 }
693 return &vet.Query{
694 Sql: q.Text,
695 Name: q.Name,
696 Cmd: strings.TrimPrefix(q.Cmd, ":"),
697 Params: params,
698 }
699}
700
701type vetEngineOutput struct {
702 PostgreSQL *vet.PostgreSQL

Callers 1

checkSQLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected