Skip to content

Commit 6f19f6f

Browse files
committed
Mention what isolation level methods are doing.
1 parent 75ad088 commit 6f19f6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,8 @@ impl Connection {
10061006

10071007
/// Sets the isolation level which will be used for future transactions.
10081008
///
1009+
/// This is a simple wrapper around `SET TRANSACTION ISOLATION LEVEL ...`.
1010+
///
10091011
/// ## Note
10101012
///
10111013
/// This will not change the behavior of an active transaction.
@@ -1014,6 +1016,8 @@ impl Connection {
10141016
}
10151017

10161018
/// Returns the isolation level which will be used for future transactions.
1019+
///
1020+
/// This is a simple wrapper around `SHOW TRANSACTION ISOLATION LEVEL`.
10171021
pub fn transaction_isolation(&self) -> Result<IsolationLevel> {
10181022
let mut conn = self.conn.borrow_mut();
10191023
check_desync!(conn);

0 commit comments

Comments
 (0)