MCPcopy Create free account
hub / github.com/dolthub/doltgresql / ToInternal

Method ToInternal

core/id/cache.go:99–107  ·  view source on GitHub ↗

ToInternal returns the internal ID associated with the given OID.

(oid uint32)

Source from the content-addressed store, hash-verified

97
98// ToInternal returns the internal ID associated with the given OID.
99func (cache *cacheStruct) ToInternal(oid uint32) Id {
100 cache.mutex.RLock()
101 defer cache.mutex.RUnlock()
102 if id, ok := cache.toInternal[oid]; ok {
103 return id
104 }
105 // The OID is not in the cache, so it's invalid
106 return ""
107}
108
109// Exists returns whether the given internal ID exists within the cache. This should primarily be used for the default
110// functions, as it's not guaranteed that user functions will be in the cache, especially after a server restart.

Callers 15

checkCompatibleTypesFunction · 0.80
convertBindParametersMethod · 0.80
record_recv_callableFunction · 0.80
regclass.goFile · 0.80
regproc.goFile · 0.80
array_recv_callableFunction · 0.80
oid.goFile · 0.80
regtype.goFile · 0.80
nodeExprFunction · 0.80
int64ImplicitFunction · 0.80
int32ImplicitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected