MCPcopy Create free account
hub / github.com/documentdb/documentdb / ApiDataNamespaceOid

Function ApiDataNamespaceOid

pg_documentdb/src/metadata/metadata_cache.c:7373–7385  ·  view source on GitHub ↗

* Returns the OID of the ApiDataSchemaName namespace */

Source from the content-addressed store, hash-verified

7371 * Returns the OID of the ApiDataSchemaName namespace
7372 */
7373Oid
7374ApiDataNamespaceOid(void)
7375{
7376 InitializeDocumentDBApiExtensionCache();
7377
7378 if (Cache.ApiDataNamespaceOid == InvalidOid)
7379 {
7380 bool missingOk = false;
7381 Cache.ApiDataNamespaceOid = get_namespace_oid(ApiDataSchemaName, missingOk);
7382 }
7383
7384 return Cache.ApiDataNamespaceOid;
7385}
7386
7387
7388/*

Tested by

no test coverage detected