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

Method Hash

common/storage/sql/postgres.go:27–29  ·  view source on GitHub ↗
(s ...string)

Source from the content-addressed store, hash-verified

25}
26
27func (p *postgresHelper) Hash(s ...string) string {
28 return `ENCODE(DIGEST(` + p.Concat(s...) + `, 'sha1'), 'hex')`
29}
30
31func (p *postgresHelper) HashParent(nameKey string, levelKey string, mpathes ...string) string {
32 return p.Hash(nameKey, "'__###PARENT_HASH###__'", p.ParentMPath(levelKey, mpathes...))

Callers 2

HashParentMethod · 0.95
ApplyOrderedUpdatesMethod · 0.95

Calls 1

ConcatMethod · 0.95

Tested by

no test coverage detected