1
2
3
4
5
6
7
8
9
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;
}