Trait diesel::connection::SimpleConnection
[−]
[src]
pub trait SimpleConnection { fn batch_execute(&self, query: &str) -> QueryResult<()>; }
Perform simple operations on a backend.
Required Methods
fn batch_execute(&self, query: &str) -> QueryResult<()>
Execute multiple SQL statements within the same string.
This function is typically used in migrations where the statements to upgrade or downgrade the database are stored in SQL batch files.