Struct diesel::connection::AnsiTransactionManager [−][src]
pub struct AnsiTransactionManager { /* fields omitted */ }
An implementation of TransactionManager
which can be used for backends
which use ANSI standard syntax for savepoints such as SQLite and PostgreSQL.
Methods
impl AnsiTransactionManager
[src]
impl AnsiTransactionManager
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new transaction manager
pub fn begin_transaction_sql<Conn>(
&self,
conn: &Conn,
sql: &str
) -> QueryResult<()> where
Conn: SimpleConnection,
[src]
pub fn begin_transaction_sql<Conn>(
&self,
conn: &Conn,
sql: &str
) -> QueryResult<()> where
Conn: SimpleConnection,
Begin a transaction with custom SQL
This is used by connections to implement more complex transaction APIs to set things such as isolation levels. Returns an error if already inside of a transaction.
Trait Implementations
impl Default for AnsiTransactionManager
[src]
impl Default for AnsiTransactionManager
fn default() -> AnsiTransactionManager
[src]
fn default() -> AnsiTransactionManager
Returns the "default value" for a type. Read more
impl<Conn> TransactionManager<Conn> for AnsiTransactionManager where
Conn: Connection,
Conn::Backend: UsesAnsiSavepointSyntax,
[src]
impl<Conn> TransactionManager<Conn> for AnsiTransactionManager where
Conn: Connection,
Conn::Backend: UsesAnsiSavepointSyntax,
fn begin_transaction(&self, conn: &Conn) -> QueryResult<()>
[src]
fn begin_transaction(&self, conn: &Conn) -> QueryResult<()>
Begin a new transaction or savepoint Read more
fn rollback_transaction(&self, conn: &Conn) -> QueryResult<()>
[src]
fn rollback_transaction(&self, conn: &Conn) -> QueryResult<()>
Rollback the inner-most transaction or savepoint Read more
fn commit_transaction(&self, conn: &Conn) -> QueryResult<()>
[src]
fn commit_transaction(&self, conn: &Conn) -> QueryResult<()>
Commit the inner-most transaction or savepoint Read more
fn get_transaction_depth(&self) -> u32
[src]
fn get_transaction_depth(&self) -> u32
Fetch the current transaction depth Read more
Auto Trait Implementations
impl Send for AnsiTransactionManager
impl Send for AnsiTransactionManager
impl !Sync for AnsiTransactionManager
impl !Sync for AnsiTransactionManager