[][src]Trait diesel::connection::SimpleConnection

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.

Loading content...

Implementors

impl SimpleConnection for MysqlConnection[src]

impl SimpleConnection for PgConnection[src]

impl SimpleConnection for SqliteConnection[src]

impl<M> SimpleConnection for PooledConnection<M> where
    M: ManageConnection,
    M::Connection: Connection + Send + 'static, 
[src]

Loading content...