MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / ServerContains

Function ServerContains

ent/node/where.go:375–377  ·  view source on GitHub ↗

ServerContains applies the Contains predicate on the "server" field.

(v string)

Source from the content-addressed store, hash-verified

373
374// ServerContains applies the Contains predicate on the "server" field.
375func ServerContains(v string) predicate.Node {
376 return predicate.Node(sql.FieldContains(FieldServer, v))
377}
378
379// ServerHasPrefix applies the HasPrefix predicate on the "server" field.
380func ServerHasPrefix(v string) predicate.Node {

Callers

nothing calls this directly

Calls 1

NodeFuncType · 0.92

Tested by

no test coverage detected