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

Function ServerHasPrefix

ent/node/where.go:380–382  ·  view source on GitHub ↗

ServerHasPrefix applies the HasPrefix predicate on the "server" field.

(v string)

Source from the content-addressed store, hash-verified

378
379// ServerHasPrefix applies the HasPrefix predicate on the "server" field.
380func ServerHasPrefix(v string) predicate.Node {
381 return predicate.Node(sql.FieldHasPrefix(FieldServer, v))
382}
383
384// ServerHasSuffix applies the HasSuffix predicate on the "server" field.
385func ServerHasSuffix(v string) predicate.Node {

Callers

nothing calls this directly

Calls 1

NodeFuncType · 0.92

Tested by

no test coverage detected