pub struct SqliteProjectionStore { /* private fields */ }Expand description
SQLite-backed projection store
Implementations§
Source§impl SqliteProjectionStore
impl SqliteProjectionStore
Sourcepub fn conn(&self) -> &Arc<Mutex<Connection>>
pub fn conn(&self) -> &Arc<Mutex<Connection>>
Get the underlying connection (for migrations and custom queries)
Returns an Arc to the Mutex-protected SQLite connection. Users should lock the mutex to access the connection.
Trait Implementations§
Source§impl ProjectionStore for SqliteProjectionStore
impl ProjectionStore for SqliteProjectionStore
type Txn<'a> = SimpleProjectionTxn<'a>
Source§fn open(cfg: ProjectionConfig) -> Result<Self>
fn open(cfg: ProjectionConfig) -> Result<Self>
Open a projection store
Source§fn get_cursor(&self) -> Result<EventId>
fn get_cursor(&self) -> Result<EventId>
Get the current cursor (last applied event ID)
Source§fn restore_from(path: &Path, cfg: ProjectionConfig) -> Result<Self>
fn restore_from(path: &Path, cfg: ProjectionConfig) -> Result<Self>
Restore from a backup
Source§fn schema_version(&self) -> Result<u32>
fn schema_version(&self) -> Result<u32>
Get the schema version
Auto Trait Implementations§
impl Freeze for SqliteProjectionStore
impl RefUnwindSafe for SqliteProjectionStore
impl Send for SqliteProjectionStore
impl Sync for SqliteProjectionStore
impl Unpin for SqliteProjectionStore
impl UnwindSafe for SqliteProjectionStore
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