Trait diesel::connection::SimpleConnection [−][src]
pub trait SimpleConnection { fn batch_execute(&self, query: &str) -> QueryResult<()>; }
Perform simple operations on a backend.
You should likely use Connection
instead.
Required Methods
fn batch_execute(&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.
Implementations on Foreign Types
impl<T> SimpleConnection for PooledConnection<ConnectionManager<T>> where
T: Connection + Send + 'static,
[src]
impl<T> SimpleConnection for PooledConnection<ConnectionManager<T>> where
T: Connection + Send + 'static,
fn batch_execute(&self, query: &str) -> QueryResult<()>
[src]
fn batch_execute(&self, query: &str) -> QueryResult<()>
Implementors
impl SimpleConnection for MysqlConnection
impl SimpleConnection for PgConnection
impl SimpleConnection for SqliteConnection