sqlx/sqlx-core/src/done.rs
Ryan Leckey 00137d4a04 feat: add sqlx::Done and return from Executor::execute()
+ Done::rows_affected()

 + Done::last_insert_id()
2020-07-14 04:31:25 -07:00

10 lines
279 B
Rust

use crate::database::Database;
use std::iter::Extend;
pub trait Done: 'static + Sized + Send + Sync + Default + Extend<Self> {
type Database: Database;
/// Returns the number of rows affected by an `UPDATE`, `INSERT`, or `DELETE`.
fn rows_affected(&self) -> u64;
}