MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / encode_edge_key

Function encode_edge_key

atomic-core/src/pristine/tables.rs:611–613  ·  view source on GitHub ↗
(from_id: &str, to_id: &str, kind: &str)

Source from the content-addressed store, hash-verified

609/// Encode a KG edge key as "from_id\0to_id\0kind".
610#[inline]
611pub fn encode_edge_key(from_id: &str, to_id: &str, kind: &str) -> String {
612 format!("{}\0{}\0{}", from_id, to_id, kind)
613}
614
615/// Decode a KG edge key into (from_id, to_id, kind).
616#[inline]

Callers 3

test_edge_key_roundtripFunction · 0.85
upsert_kg_edgeMethod · 0.85
del_kg_edgeMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_edge_key_roundtripFunction · 0.68