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

Method setBuiltIn

core/id/cache.go:119–125  ·  view source on GitHub ↗

setBuiltIn sets the given ID to the OID. This should only be used for the built-in items.

(id Id, oid uint32)

Source from the content-addressed store, hash-verified

117
118// setBuiltIn sets the given ID to the OID. This should only be used for the built-in items.
119func (cache *cacheStruct) setBuiltIn(id Id, oid uint32) {
120 if oid > builtinOidLimit {
121 panic("oid is not a built-in")
122 }
123 cache.toOID[id] = oid
124 cache.toInternal[oid] = id
125}
126
127// update is used to change the OID mapping of an existing internal ID that has been changed (where the internal ID
128// points to the same logical item).

Callers 6

initFunction · 0.80
initFunction · 0.80
initFunction · 0.80
initFunction · 0.80
initFunction · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected