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

Method Hash

common/storage/sql/sqlite.go:121–123  ·  view source on GitHub ↗
(s ...string)

Source from the content-addressed store, hash-verified

119}
120
121func (p *sqliteHelper) Hash(s ...string) string {
122 return `hex_sha1(` + p.Concat(s...) + `)`
123}
124
125func (p *sqliteHelper) ParentMPath(levelKey string, mpathes ...string) string {
126 return `substring_index(` + p.Concat(mpathes...) + `, '.', ` + levelKey + `-1)`

Callers 1

HashParentMethod · 0.95

Calls 1

ConcatMethod · 0.95

Tested by

no test coverage detected