MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / register_schema

Function register_schema

nodedb-test-support/src/array_sync.rs:115–120  ·  view source on GitHub ↗
(shared: &Arc<SharedState>, array_name: &str)

Source from the content-addressed store, hash-verified

113/// initial `register_schema_on_all` call instead.
114#[allow(dead_code)]
115pub fn register_schema(shared: &Arc<SharedState>, array_name: &str) -> Hlc {
116 let (bytes, schema_hlc) = build_schema_snapshot(array_name);
117 import_schema_snapshot(shared, array_name, &bytes, schema_hlc);
118 register_catalog_entry(shared, array_name);
119 schema_hlc
120}

Callers

nothing calls this directly

Calls 3

build_schema_snapshotFunction · 0.85
import_schema_snapshotFunction · 0.85
register_catalog_entryFunction · 0.85

Tested by

no test coverage detected