Skip to main content

HostCypherExecutor

Trait HostCypherExecutor 

Source
pub trait HostCypherExecutor:
    Send
    + Sync
    + Debug {
    // Required method
    fn execute_write_cypher(&self, cypher: &str) -> Result<(), String>;
}
Expand description

Host-provided write-mode Cypher executor.

Implemented by the uni-db API crate. Best-effort callers (the persistence mirror) log and swallow the Err; the scheduler maps it to a plugin FnError. The current-thread-runtime guard / block_in_place handling lives in the host’s implementation, not here.

Required Methods§

Source

fn execute_write_cypher(&self, cypher: &str) -> Result<(), String>

Execute a write-mode Cypher statement to commit.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§