Starts a transaction which is automatically rolled back on drop. To commit or rollback the transaction, see [`Transaction::commit`] and [`Transaction::rollback`] respectively.
(&mut self)
| 293 | /// To commit or rollback the transaction, see [`Transaction::commit`] and |
| 294 | /// [`Transaction::rollback`] respectively. |
| 295 | pub async fn transaction(&mut self) -> Result<Transaction<'_>, SqlServerError> { |
| 296 | Transaction::new(self).await |
| 297 | } |
| 298 | |
| 299 | /// Sets the transaction isolation level for the current session. |
| 300 | pub async fn set_transaction_isolation( |