File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ impl Conn {
101101 }
102102}
103103
104- /// Methods of this trait used to execute database queries.
104+ /// Methods of this trait are used to execute database queries.
105105pub trait Queryable : Send {
106106 /// Executes `COM_PING`.
107107 fn ping ( & mut self ) -> BoxFuture < ' _ , ( ) > ;
Original file line number Diff line number Diff line change @@ -121,9 +121,11 @@ impl fmt::Display for IsolationLevel {
121121
122122/// This struct represents MySql transaction.
123123///
124- /// `Transaction` is just a sugar for `START TRANSACTION`, `ROLLBACK` and `COMMIT` queries, so one
125- /// should note that it is easy to mess things up calling this queries manually. Also you will get
126- /// `NestedTransaction` error if you call `transaction.start_transaction(_)`.
124+ /// `Transaction` is just a sugar for `START TRANSACTION`, `ROLLBACK` and `COMMIT` queries,
125+ /// so please note, that it is easy to mess things up calling this queries manually.
126+ ///
127+ /// You should alwasy call either `commit` or `rollback`, otherwise transaction will be rolled
128+ /// back implicitly when corresponding connection is dropped or queried.
127129#[ derive( Debug ) ]
128130pub struct Transaction < ' a > ( pub ( crate ) Connection < ' a , ' static > ) ;
129131
You can’t perform that action at this time.
0 commit comments