MCPcopy Index your code
hub / github.com/micro/go-micro / buildWhere

Function buildWhere

model/sqlite/sqlite.go:316–324  ·  view source on GitHub ↗
(filters []model.Filter)

Source from the content-addressed store, hash-verified

314}
315
316func buildWhere(filters []model.Filter) (string, []any) {
317 var clauses []string
318 var args []any
319 for _, f := range filters {
320 clauses = append(clauses, fmt.Sprintf("%q %s ?", f.Field, f.Op))
321 args = append(args, f.Value)
322 }
323 return strings.Join(clauses, " AND "), args
324}
325
326func columnList(schema *model.Schema) string {
327 var cols []string

Callers 2

ListMethod · 0.70
CountMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…