Trait Batch

Source
pub trait Batch {
    // Required methods
    fn add(&mut self, sql: String) -> &mut Self
       where Self: Sized;
    fn execute(&mut self) -> Result<Box<dyn SQLResult>>;
}
Expand description

A collection of statements that are executed in a batch for performance reasons.

Required Methods§

Source

fn add(&mut self, sql: String) -> &mut Self
where Self: Sized,

Add a statement to this batch.

Source

fn execute(&mut self) -> Result<Box<dyn SQLResult>>

Executes one or more SQL statements and returns the Results.

Implementors§