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

Method HasSqlcSlices

internal/codegen/golang/query.go:181–191  ·  view source on GitHub ↗

When true, we have to build the arguments to q.db.QueryContext in addition to munging the SQL

()

Source from the content-addressed store, hash-verified

179// When true, we have to build the arguments to q.db.QueryContext in addition to
180// munging the SQL
181func (v QueryValue) HasSqlcSlices() bool {
182 if v.Struct == nil {
183 return v.Column != nil && v.Column.IsSqlcSlice
184 }
185 for _, v := range v.Struct.Fields {
186 if v.Column.IsSqlcSlice {
187 return true
188 }
189 }
190 return false
191}
192
193func (v QueryValue) Scan() string {
194 var out []string

Callers 1

queryImportsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected