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

Function usesBatch

internal/codegen/golang/gen.go:345–354  ·  view source on GitHub ↗
(queries []Query)

Source from the content-addressed store, hash-verified

343}
344
345func usesBatch(queries []Query) bool {
346 for _, q := range queries {
347 for _, cmd := range []string{metadata.CmdBatchExec, metadata.CmdBatchMany, metadata.CmdBatchOne} {
348 if q.Cmd == cmd {
349 return true
350 }
351 }
352 }
353 return false
354}
355
356func checkNoTimesForMySQLCopyFrom(queries []Query) error {
357 for _, q := range queries {

Callers 4

generateFunction · 0.85
interfaceImportsMethod · 0.85
queryImportsMethod · 0.85
batchImportsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected