pub trait SimpleConnection {
// Required method
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SimpleConnection for PgConnection
Available on crate features
postgres_backend and postgres only.impl SimpleConnection for SqliteConnection
Available on crate feature
__sqlite-shared only.impl<DB: MysqlLikeBackend> SimpleConnection for MysqlLikeConnection<DB>
Available on (crate features
mariadb_backend or mysql_backend) and (crate features mariadb or mysql) only.impl<M> SimpleConnection for PooledConnection<M>
Available on crate feature
r2d2 only.