Struct sea_orm::Database [−][src]
pub struct Database;
Expand description
Defines a database
Implementations
pub 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 UnwindSafe for Database
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more