Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/conn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ impl Conn {
self.inner.id
}

/// Returns the disconnected state of the connection.
pub fn is_disconnected(&self) -> bool {
self.inner.disconnected
}

/// Returns the ID generated by a query (usually `INSERT`) on a table with a column having the
/// `AUTO_INCREMENT` attribute. Returns `None` if there was no previous query on the connection
/// or if the query did not update an AUTO_INCREMENT value.
Expand Down
Loading