Trait block_tools::db::use_diesel::connection::SimpleConnection[][src]

pub trait SimpleConnection {
    pub fn batch_execute(&self, query: &str) -> Result<(), Error>;
}

Perform simple operations on a backend.

You should likely use Connection instead.

Required methods

pub fn batch_execute(&self, query: &str) -> Result<(), Error>[src]

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 PgConnection[src]

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

Loading content...