pub struct ProcedureRegistry { /* private fields */ }Expand description
Lookup table for registered procedures, keyed by fully qualified
name (test.my.proc). The executor consults this at run time;
callers (TCK harness, server startup) build an instance and pass
it to crate::execute_with_reader_and_procs. An empty registry
is the default, meaning no procedures are known and any CALL
raises ProcedureNotFound.
Implementations§
Source§impl ProcedureRegistry
impl ProcedureRegistry
pub fn new() -> Self
pub fn register(&mut self, proc: Procedure)
pub fn get(&self, qualified_name: &[String]) -> Option<&Procedure>
Sourcepub fn set_import_config(&mut self, cfg: ImportConfig)
pub fn set_import_config(&mut self, cfg: ImportConfig)
Attach the server’s [ImportConfig] so apoc.load.*
knows which file paths / URLs are allowed. Without a
call to this method every load call refuses with the
“apoc.import.enabled” message.
Sourcepub fn import_config(&self) -> Option<&ImportConfig>
pub fn import_config(&self) -> Option<&ImportConfig>
The currently-attached import config, if any.
Sourcepub fn set_trigger_registry(&mut self, registry: TriggerRegistry)
pub fn set_trigger_registry(&mut self, registry: TriggerRegistry)
Attach the runtime trigger registry. Required before
apoc.trigger.install / drop / list will succeed.
Sourcepub fn trigger_registry(&self) -> Option<&TriggerRegistry>
pub fn trigger_registry(&self) -> Option<&TriggerRegistry>
The currently-attached trigger registry, if any.
Sourcepub fn register_defaults(&mut self)
pub fn register_defaults(&mut self)
Register the built-in db.labels, db.relationshipTypes, and
db.propertyKeys procedures. Call once at server startup —
the executor materialises each call’s row set from the live
graph, so no data needs to be recomputed here when new
labels / types / keys appear.
Trait Implementations§
Source§impl Clone for ProcedureRegistry
impl Clone for ProcedureRegistry
Source§fn clone(&self) -> ProcedureRegistry
fn clone(&self) -> ProcedureRegistry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more