pub struct ZalEntityStore { /* private fields */ }Expand description
SQLite-backed entity store persisted as a single .zes file.
Uses rusqlite/bundled so no system SQLite installation is required.
All mutations hold the connection Mutex for the duration of the
transaction, suitable for single-threaded or lightly-concurrent use.
Implementations§
Source§impl ZalEntityStore
impl ZalEntityStore
Sourcepub fn open(path: &Path) -> Result<ZalEntityStore, ZerError>
pub fn open(path: &Path) -> Result<ZalEntityStore, ZerError>
Open (or create) a .zes store at the given path.
Sourcepub fn open_in_memory() -> Result<ZalEntityStore, ZerError>
pub fn open_in_memory() -> Result<ZalEntityStore, ZerError>
Open an in-memory store. No file is created; data is lost on drop.
Trait Implementations§
Source§impl EntityStore for ZalEntityStore
impl EntityStore for ZalEntityStore
Auto Trait Implementations§
impl !Freeze for ZalEntityStore
impl RefUnwindSafe for ZalEntityStore
impl Send for ZalEntityStore
impl Sync for ZalEntityStore
impl Unpin for ZalEntityStore
impl UnsafeUnpin for ZalEntityStore
impl UnwindSafe for ZalEntityStore
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> 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