Skip to content

Commit

Permalink
doc: Mention that Conn disconnects on drop (close #308)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam committed Jan 25, 2022
1 parent e63eb3f commit 027a850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ let _ = Conn::new(opts)?;
This structure represents an active MySql connection. It also holds statement cache
and metadata for the last result set.

Conn's destructor will gracefully disconnect it from the server.

#### `Transaction`

It's a simple wrapper on top of a routine, that starts with `START TRANSACTION`
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@
//! This structure represents an active MySql connection. It also holds statement cache
//! and metadata for the last result set.
//!
//! Conn's destructor will gracefully disconnect it from the server.
//!
//! ### `Transaction`
//!
//! It's a simple wrapper on top of a routine, that starts with `START TRANSACTION`
Expand Down

0 comments on commit 027a850

Please sign in to comment.