pub struct ExecuteResult { /* private fields */ }Expand description
A result from a query execution, listing the number of affected rows.
If executing multiple queries, the resulting counts will be come separately, marking the rows affected for each query.
§Example
let result = client
.execute(
"INSERT INTO #Test (id) VALUES (@P1); INSERT INTO #Test (id) VALUES (@P2, @P3)",
&[&1i32, &2i32, &3i32],
)
.await?;
assert_eq!(&[1, 2], result.rows_affected());Implementations§
Source§impl<'a> ExecuteResult
impl<'a> ExecuteResult
Sourcepub fn rows_affected(&self) -> &[u64]
pub fn rows_affected(&self) -> &[u64]
A slice of numbers of rows affected in the same order as the given queries.
Trait Implementations§
Source§impl Debug for ExecuteResult
impl Debug for ExecuteResult
Source§impl IntoIterator for ExecuteResult
impl IntoIterator for ExecuteResult
Source§type IntoIter = IntoIter<<ExecuteResult as IntoIterator>::Item>
type IntoIter = IntoIter<<ExecuteResult as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <ExecuteResult as IntoIterator>::IntoIter
fn into_iter(self) -> <ExecuteResult as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl Freeze for ExecuteResult
impl RefUnwindSafe for ExecuteResult
impl Send for ExecuteResult
impl Sync for ExecuteResult
impl Unpin for ExecuteResult
impl UnwindSafe for ExecuteResult
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