pub struct SqliteStockSnapshotRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteStockSnapshotRepository
impl SqliteStockSnapshotRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl StockSnapshotRepository for SqliteStockSnapshotRepository
impl StockSnapshotRepository for SqliteStockSnapshotRepository
Source§fn capture(&self, input: CaptureStockSnapshot) -> Result<StockSnapshot>
fn capture(&self, input: CaptureStockSnapshot) -> Result<StockSnapshot>
Capture a new stock snapshot (totals are computed from the lines).
Source§fn get(&self, id: StockSnapshotId) -> Result<Option<StockSnapshot>>
fn get(&self, id: StockSnapshotId) -> Result<Option<StockSnapshot>>
Get a snapshot by ID (with lines).
Source§fn list(&self, filter: StockSnapshotFilter) -> Result<Vec<StockSnapshot>>
fn list(&self, filter: StockSnapshotFilter) -> Result<Vec<StockSnapshot>>
List snapshots (header-level, most recent first).
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteStockSnapshotRepository
impl !UnwindSafe for SqliteStockSnapshotRepository
impl Freeze for SqliteStockSnapshotRepository
impl Send for SqliteStockSnapshotRepository
impl Sync for SqliteStockSnapshotRepository
impl Unpin for SqliteStockSnapshotRepository
impl UnsafeUnpin for SqliteStockSnapshotRepository
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