pub struct SqlExecutionOutcome {
pub rows_affected: Vec<u64>,
}Expand description
Metadata returned after executing SQL through a connected client.
This type is part of the narrow lifecycle SQL API. Statement execution is added separately from connection construction so connection setup can remain independently reviewable.
Fields§
§rows_affected: Vec<u64>Row counts reported by SQL Server DONE tokens, in server result order.
Implementations§
Source§impl SqlExecutionOutcome
impl SqlExecutionOutcome
Sourcepub fn total_rows_affected(&self) -> u64
pub fn total_rows_affected(&self) -> u64
Returns the sum of all reported affected-row counts.
Trait Implementations§
Source§impl Clone for SqlExecutionOutcome
impl Clone for SqlExecutionOutcome
Source§fn clone(&self) -> SqlExecutionOutcome
fn clone(&self) -> SqlExecutionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlExecutionOutcome
impl Debug for SqlExecutionOutcome
Source§impl Default for SqlExecutionOutcome
impl Default for SqlExecutionOutcome
Source§fn default() -> SqlExecutionOutcome
fn default() -> SqlExecutionOutcome
Returns the “default value” for a type. Read more
impl Eq for SqlExecutionOutcome
Source§impl PartialEq for SqlExecutionOutcome
impl PartialEq for SqlExecutionOutcome
impl StructuralPartialEq for SqlExecutionOutcome
Auto Trait Implementations§
impl Freeze for SqlExecutionOutcome
impl RefUnwindSafe for SqlExecutionOutcome
impl Send for SqlExecutionOutcome
impl Sync for SqlExecutionOutcome
impl Unpin for SqlExecutionOutcome
impl UnsafeUnpin for SqlExecutionOutcome
impl UnwindSafe for SqlExecutionOutcome
Blanket Implementations§
impl<T> Allocation for T
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