pub struct Database;
Expand description
Defines a database
Implementations
sourceimpl Database
impl Database
sourcepub async fn connect<C>(opt: C) -> Result<DatabaseConnection, DbErr>where
C: Into<ConnectOptions>,
pub async fn connect<C>(opt: C) -> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more