pub enum BackendClient {
Sqlite(SqliteGraphBackend),
Native(NativeGraphBackend),
Dynamic(Box<dyn GraphBackend>),
}Expand description
Minimal client wrapper for v0.2.5
Variants§
Sqlite(SqliteGraphBackend)
Native(NativeGraphBackend)
Dynamic(Box<dyn GraphBackend>)
Dynamic backend for factory-created backends (e.g., from open_graph())
Implementations§
Source§impl BackendClient
impl BackendClient
pub fn new(backend: SqliteGraphBackend) -> Self
pub fn new_native(backend: NativeGraphBackend) -> Self
Sourcepub fn from_dynamic(backend: Box<dyn GraphBackend>) -> Self
pub fn from_dynamic(backend: Box<dyn GraphBackend>) -> Self
Create from a boxed trait object (e.g., from open_graph factory)
Sourcepub fn backend(&self) -> &dyn GraphBackend
pub fn backend(&self) -> &dyn GraphBackend
Get the GraphBackend trait object
Sourcepub fn graph(&self) -> Option<&SqliteGraph>
pub fn graph(&self) -> Option<&SqliteGraph>
Get the underlying SqliteGraph if this is a SQLite backend
Sourcepub fn entity_ids(&self) -> Result<Option<Vec<i64>>, SqliteGraphError>
pub fn entity_ids(&self) -> Result<Option<Vec<i64>>, SqliteGraphError>
Get all entity IDs if this is a SQLite backend
Sourcepub fn backend_type(&self) -> &str
pub fn backend_type(&self) -> &str
Get backend type name for debugging
Sourcepub fn get_wal_metrics(&self) -> Option<WALManagerMetrics>
pub fn get_wal_metrics(&self) -> Option<WALManagerMetrics>
Get WAL metrics (only available for Native backend with native-v2 feature)
Sourcepub fn get_active_transaction_count(&self) -> Option<usize>
pub fn get_active_transaction_count(&self) -> Option<usize>
Get active transaction count (only available for Native backend with native-v2 feature)
Auto Trait Implementations§
impl !Freeze for BackendClient
impl !RefUnwindSafe for BackendClient
impl !Send for BackendClient
impl !Sync for BackendClient
impl Unpin for BackendClient
impl !UnwindSafe for BackendClient
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