Trait diesel::connection::SimpleConnection
source · pub trait SimpleConnection {
fn batch_execute(&mut self, query: &str) -> QueryResult<()>;
}
Expand description
Perform simple operations on a backend.
You should likely use Connection
instead.
Required Methods§
sourcefn batch_execute(&mut self, query: &str) -> QueryResult<()>
fn batch_execute(&mut self, query: &str) -> QueryResult<()>
Execute multiple SQL statements within the same string.
This function is used to execute migrations, which may contain more than one SQL statement.