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

Method Update

ent/node.go:195–197  ·  view source on GitHub ↗

Update returns a builder for updating this Node. Note that you need to call Node.Unwrap() before calling this method if this Node was returned from a transaction, and the transaction was committed or rolled back.

()

Source from the content-addressed store, hash-verified

193// Note that you need to call Node.Unwrap() before calling this method if this Node
194// was returned from a transaction, and the transaction was committed or rolled back.
195func (n *Node) Update() *NodeUpdateOne {
196 return NewNodeClient(n.config).UpdateOne(n)
197}
198
199// Unwrap unwraps the Node entity that was returned from a transaction after it was closed,
200// so that all future queries will be executed through the driver which created the transaction.

Callers

nothing calls this directly

Calls 2

NewNodeClientFunction · 0.70
UpdateOneMethod · 0.45

Tested by

no test coverage detected