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

Function ApplyQueryOptions

model/query.go:23–29  ·  view source on GitHub ↗

ApplyQueryOptions applies a set of QueryOptions and returns the result.

(opts ...QueryOption)

Source from the content-addressed store, hash-verified

21
22// ApplyQueryOptions applies a set of QueryOptions and returns the result.
23func ApplyQueryOptions(opts ...QueryOption) QueryOptions {
24 q := QueryOptions{}
25 for _, o := range opts {
26 o(&q)
27 }
28 return q
29}
30
31// Where adds an equality filter: field = value.
32func Where(field string, value any) QueryOption {

Callers 7

ListMethod · 0.92
CountMethod · 0.92
ListMethod · 0.92
CountMethod · 0.92
TestApplyQueryOptionsFunction · 0.85
ListMethod · 0.85
CountMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestApplyQueryOptionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…