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