Struct tiberius::ExecuteResult
source · 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.