MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / close

Method close

src/driver/sqlx_mysql.rs:247–249  ·  view source on GitHub ↗

Explicitly close the MySQL connection. See [`Self::close_by_ref`] for usage with references.

(self)

Source from the content-addressed store, hash-verified

245 /// Explicitly close the MySQL connection.
246 /// See [`Self::close_by_ref`] for usage with references.
247 pub async fn close(self) -> Result<(), DbErr> {
248 self.close_by_ref().await
249 }
250
251 /// Explicitly close the MySQL connection
252 pub async fn close_by_ref(&self) -> Result<(), DbErr> {

Callers 4

close_by_refMethod · 0.45

Calls 1

close_by_refMethod · 0.45

Tested by 3