Skip to main content

Module graph

Module graph 

Source
Expand description

uni.graph.{project, drop, list, exists} procedures — named graph-projection lifecycle (M5c.4 / proposal §4.10.3).

Projections live in the per-StorageManager crate::projection_store::ProjectionStore (see crates/uni-query/src/projection_store.rs). v1 is in-memory only — restart clears every projection — and the only eviction mechanism is uni.graph.drop.

The procedures live in uni-query (not uni-plugin-builtin) because they need to call QueryProcedureHost::execute_inner_query and crate::projection_store::for_storage, both of which are uni- query types that uni-plugin-builtin cannot reach without an inverted dependency.

Structs§

DropProcedure
uni.graph.drop(name) -> (dropped). Returns false when no projection by that name existed (not an error).
ExistsProcedure
uni.graph.exists(name) -> (exists). Pure read; never errors on missing names.
ListProcedure
uni.graph.list() -> (name, node_count, edge_count, bytes, created_at_ms, source_kind).
ProjectProcedure
uni.graph.project(name, graphRef, config) -> (name, node_count, edge_count, bytes).

Functions§

register_into
Register every uni.graph.* procedure into r.