pub trait SqlTransaction:
SqlWriter
+ Send
+ 'static {
// Required methods
fn commit<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>
where Self: 'async_trait;
fn rollback<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>
where Self: 'async_trait;
}Expand description
A SQL transaction (extends SqlWriter).