uqa_engine/capabilities/
cypher.rs1use std::collections::BTreeMap;
10
11use uqa_core::Value;
12use uqa_execution::query::cypher::CypherTableRuntime;
13use uqa_graph::cypher::{CypherError, ResultRow};
14use uqa_storage::StorageBackendResult;
15
16use crate::Engine;
17
18impl CypherTableRuntime for Engine {
19 fn current_transaction_is_read_only(&self) -> bool {
20 self.current_transaction_is_read_only()
21 }
22
23 fn has_graph(&self, name: &str) -> StorageBackendResult<bool> {
24 self.has_graph_in_execution(name)
25 }
26
27 fn run_cypher(
28 &self,
29 graph: &str,
30 query: &str,
31 params: BTreeMap<String, Value>,
32 ) -> Result<(Vec<String>, Vec<ResultRow>), CypherError> {
33 self.run_cypher(graph, query, params)
34 }
35}