Struct leetcode_tui_rs::migrations::sea_orm::Database
source · pub struct Database;
Expand description
Defines a database
Implementations§
source§impl Database
impl Database
sourcepub async fn connect<C>(
opt: C
) -> impl Future<Output = Result<DatabaseConnection, DbErr>>where
C: Into<ConnectOptions>,
pub async fn connect<C>( opt: C ) -> impl Future<Output = Result<DatabaseConnection, DbErr>>where C: Into<ConnectOptions>,
Method to create a DatabaseConnection on a database
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more