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

Method close

src/database/db_connection.rs:480–482  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

478 /// Explicitly close the database connection.
479 /// See [`Self::close_by_ref`] for usage with references.
480 pub async fn close(self) -> Result<(), DbErr> {
481 self.close_by_ref().await
482 }
483
484 /// Explicitly close the database connection
485 pub async fn close_by_ref(&self) -> Result<(), DbErr> {

Callers

nothing calls this directly

Calls 1

close_by_refMethod · 0.45

Tested by

no test coverage detected