MCPcopy
hub / github.com/iron-io/functions / buildFilterAppQuery

Function buildFilterAppQuery

api/datastore/postgres/postgres.go:513–523  ·  view source on GitHub ↗
(filter *models.AppFilter)

Source from the content-addressed store, hash-verified

511 return res, nil
512}
513func buildFilterAppQuery(filter *models.AppFilter) (string, []interface{}) {
514 if filter == nil {
515 return "", nil
516 }
517
518 if filter.Name != "" {
519 return "WHERE name LIKE $1", []interface{}{filter.Name}
520 }
521
522 return "", nil
523}
524
525func buildFilterRouteQuery(filter *models.RouteFilter) (string, []interface{}) {
526 if filter == nil {

Callers 1

GetAppsMethod · 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…