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

Function Server

ent/node/where.go:80–82  ·  view source on GitHub ↗

Server applies equality check predicate on the "server" field. It's identical to ServerEQ.

(v string)

Source from the content-addressed store, hash-verified

78
79// Server applies equality check predicate on the "server" field. It's identical to ServerEQ.
80func Server(v string) predicate.Node {
81 return predicate.Node(sql.FieldEQ(FieldServer, v))
82}
83
84// SlaveKey applies equality check predicate on the "slave_key" field. It's identical to SlaveKeyEQ.
85func SlaveKey(v string) predicate.Node {

Callers

nothing calls this directly

Calls 1

NodeFuncType · 0.92

Tested by

no test coverage detected