pub struct SqliteReturnRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite implementation of ReturnRepository
Implementations§
Source§impl SqliteReturnRepository
impl SqliteReturnRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqliteReturnRepository
impl Debug for SqliteReturnRepository
Source§impl ReturnRepository for SqliteReturnRepository
impl ReturnRepository for SqliteReturnRepository
Source§fn create_batch(&self, inputs: Vec<CreateReturn>) -> Result<BatchResult<Return>>
fn create_batch(&self, inputs: Vec<CreateReturn>) -> Result<BatchResult<Return>>
Create multiple returns - partial success allowed
Source§fn create_batch_atomic(&self, inputs: Vec<CreateReturn>) -> Result<Vec<Return>>
fn create_batch_atomic(&self, inputs: Vec<CreateReturn>) -> Result<Vec<Return>>
Create multiple returns - atomic (all-or-nothing)
Source§fn update_batch(
&self,
updates: Vec<(ReturnId, UpdateReturn)>,
) -> Result<BatchResult<Return>>
fn update_batch( &self, updates: Vec<(ReturnId, UpdateReturn)>, ) -> Result<BatchResult<Return>>
Update multiple returns - partial success allowed
Source§fn update_batch_atomic(
&self,
updates: Vec<(ReturnId, UpdateReturn)>,
) -> Result<Vec<Return>>
fn update_batch_atomic( &self, updates: Vec<(ReturnId, UpdateReturn)>, ) -> Result<Vec<Return>>
Update multiple returns - atomic (all-or-nothing)
Source§fn delete_batch(&self, ids: Vec<ReturnId>) -> Result<BatchResult<Uuid>>
fn delete_batch(&self, ids: Vec<ReturnId>) -> Result<BatchResult<Uuid>>
Delete multiple returns - partial success allowed
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteReturnRepository
impl !UnwindSafe for SqliteReturnRepository
impl Freeze for SqliteReturnRepository
impl Send for SqliteReturnRepository
impl Sync for SqliteReturnRepository
impl Unpin for SqliteReturnRepository
impl UnsafeUnpin for SqliteReturnRepository
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