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

Method Mutation

ent/storagepolicy_create.go:267–269  ·  view source on GitHub ↗

Mutation returns the StoragePolicyMutation object of the builder.

()

Source from the content-addressed store, hash-verified

265
266// Mutation returns the StoragePolicyMutation object of the builder.
267func (spc *StoragePolicyCreate) Mutation() *StoragePolicyMutation {
268 return spc.mutation
269}
270
271// Save creates the StoragePolicy in the database.
272func (spc *StoragePolicyCreate) Save(ctx context.Context) (*StoragePolicy, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected