use hawdb_analytics::ProjectedGraph;
use hawdb_core::{Result, Value};
use hawdb_executor::QueryOutput;
use std::collections::BTreeMap;
pub trait CompatibilityPrimaryEngine {
type Session<'a>: CompatibilityPrimarySession
where
Self: 'a;
fn query_with_params(
&mut self,
cypher: &str,
parameters: &BTreeMap<String, Value>,
) -> Result<QueryOutput>;
fn explain_plan_with_params(
&self,
cypher: &str,
parameters: &BTreeMap<String, Value>,
) -> Result<String>;
fn project_graph(&self, rel_type: Option<&str>) -> ProjectedGraph;
fn session(&mut self) -> Self::Session<'_>;
}
pub trait CompatibilityPrimarySession {
fn query_with_params(
&mut self,
cypher: &str,
parameters: &BTreeMap<String, Value>,
) -> Result<QueryOutput>;
}