MCPcopy Create free account
hub / github.com/pydio/cells / Set

Method Set

data/source/sync/dao/sql/sql.go:104–109  ·  view source on GitHub ↗
(ctx context.Context, eTag, checksum string)

Source from the content-addressed store, hash-verified

102}
103
104func (s *sqlImpl) Set(ctx context.Context, eTag, checksum string) {
105 tx := s.instance(ctx).Create(&Checksum{Etag: eTag, Checksum: checksum})
106 if tx.Error != nil {
107 s.logError(ctx, tx.Error)
108 }
109}
110
111func (s *sqlImpl) Purge(ctx context.Context, knownETags []string) int {
112 var delete []Checksum

Callers

nothing calls this directly

Calls 3

logErrorMethod · 0.95
CreateMethod · 0.45
instanceMethod · 0.45

Tested by

no test coverage detected