pub struct DbStatementResult {
pub rows_affected: usize,
pub rows: Vec<DbRow>,
}Expand description
The outcome of a single statement once its batch has committed.
One of these is produced per DbBatch::add_statement call, in add order.
rows carries the statement’s RETURNING output (empty when it had no
RETURNING clause); rows_affected is the INSERT/UPDATE/DELETE row count,
which some callers need to decide whether an LWW write actually changed
anything.
Fields§
§rows_affected: usizeThe INSERT/UPDATE/DELETE row count for the statement.
rows: Vec<DbRow>The statement’s RETURNING rows; empty when it had no RETURNING clause.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbStatementResult
impl RefUnwindSafe for DbStatementResult
impl Send for DbStatementResult
impl Sync for DbStatementResult
impl Unpin for DbStatementResult
impl UnsafeUnpin for DbStatementResult
impl UnwindSafe for DbStatementResult
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