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

Method SetStorage

ent/user_update.go:1149–1153  ·  view source on GitHub ↗

SetStorage sets the "storage" field.

(i int64)

Source from the content-addressed store, hash-verified

1147
1148// SetStorage sets the "storage" field.
1149func (uuo *UserUpdateOne) SetStorage(i int64) *UserUpdateOne {
1150 uuo.mutation.ResetStorage()
1151 uuo.mutation.SetStorage(i)
1152 return uuo
1153}
1154
1155// SetNillableStorage sets the "storage" field if the given value is not nil.
1156func (uuo *UserUpdateOne) SetNillableStorage(i *int64) *UserUpdateOne {

Callers 1

SetNillableStorageMethod · 0.95

Calls 2

ResetStorageMethod · 0.80
SetStorageMethod · 0.45

Tested by

no test coverage detected