pub enum BackendFormat {
SQLite,
Geometric,
Unknown,
}Expand description
Database backend format detected in a graph database file.
This is the legacy format detection enum. For new code, use the
Backend enum (with StorageTrait) which provides full backend abstraction.
Variants§
SQLite
SQLite-based backend (default, backward compatible)
Geometric
Geometric backend (.geo files, Magellan 3.0+)
Unknown
Unknown or unrecognized format
Implementations§
Source§impl BackendFormat
impl BackendFormat
Sourcepub fn detect(path: &Path) -> Result<Self>
pub fn detect(path: &Path) -> Result<Self>
Detect which backend format a database file uses.
Checks the file header to determine if the database is SQLite format. Returns Unknown if the file doesn’t exist or has an unrecognized header.
Deprecated: Use Backend::detect_and_open() for new code which provides
full backend abstraction, not just format detection.
Trait Implementations§
Source§impl Clone for BackendFormat
impl Clone for BackendFormat
Source§fn clone(&self) -> BackendFormat
fn clone(&self) -> BackendFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackendFormat
impl Debug for BackendFormat
Source§impl PartialEq for BackendFormat
impl PartialEq for BackendFormat
Source§fn eq(&self, other: &BackendFormat) -> bool
fn eq(&self, other: &BackendFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackendFormat
impl Eq for BackendFormat
impl StructuralPartialEq for BackendFormat
Auto Trait Implementations§
impl Freeze for BackendFormat
impl RefUnwindSafe for BackendFormat
impl Send for BackendFormat
impl Sync for BackendFormat
impl Unpin for BackendFormat
impl UnsafeUnpin for BackendFormat
impl UnwindSafe for BackendFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more