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

Method SetFileID

ent/metadata_create.go:368–371  ·  view source on GitHub ↗

SetFileID sets the "file_id" field.

(v int)

Source from the content-addressed store, hash-verified

366
367// SetFileID sets the "file_id" field.
368func (u *MetadataUpsert) SetFileID(v int) *MetadataUpsert {
369 u.Set(metadata.FieldFileID, v)
370 return u
371}
372
373// UpdateFileID sets the "file_id" field to the value that was provided on create.
374func (u *MetadataUpsert) UpdateFileID() *MetadataUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected