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 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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcedureRegistry
impl Debug for ProcedureRegistry
Source§impl Default for ProcedureRegistry
impl Default for ProcedureRegistry
Source§fn default() -> ProcedureRegistry
fn default() -> ProcedureRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcedureRegistry
impl RefUnwindSafe for ProcedureRegistry
impl Send for ProcedureRegistry
impl Sync for ProcedureRegistry
impl Unpin for ProcedureRegistry
impl UnsafeUnpin for ProcedureRegistry
impl UnwindSafe for ProcedureRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more