mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 05:11:13 +00:00
10 lines
279 B
Rust
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;
|
|
}
|