Struct diesel::connection::AnsiTransactionManager [−][src]
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
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,
Auto Trait Implementations
impl Send for AnsiTransactionManager
impl Send for AnsiTransactionManager
impl !Sync for AnsiTransactionManager
impl !Sync for AnsiTransactionManager