MCPcopy
hub / github.com/dosco/graphjin / Normalize

Method Normalize

core/cache_response.go:183–195  ·  view source on GitHub ↗

Normalize returns the canonical source/kind form for this ref.

()

Source from the content-addressed store, hash-verified

181
182// Normalize returns the canonical source/kind form for this ref.
183func (r RowRef) Normalize() RowRef {
184 if r.Source == "" {
185 r.Source = CacheSourceDB
186 }
187 if r.Kind == "" {
188 if r.ID == "" {
189 r.Kind = CacheKindTable
190 } else {
191 r.Kind = CacheKindRow
192 }
193 }
194 return r
195}
196
197// DependencyKey returns the exact index key for this dependency ref.
198func (r RowRef) DependencyKey() string {

Callers 8

DependencyKeyMethod · 0.95
TableDependencyMethod · 0.95
scopeDBRefsMethod · 0.80
appendUniqueCacheRefsFunction · 0.80
cacheIndexRefsFunction · 0.80
refExcludedByConfigFunction · 0.80
addEntryIndexesLockedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected