pub async fn init(opts: &DbOpt) -> Result<()> {
    let db = Db::connect(opts).await?;
    db.create_schema().await?;
    Ok(())
}
/// Initialize schema and close connection.
Initialize schema and close connection.
Initialize schema and close connection .
pub async fn init(opts: &DbOpt) -> Result<()> {
    let db = Db::connect(opts).await?;
    db.create_schema().await?;
    Ok(())
}
pub async fn init ( opts : & DbOpt ) -> Result < ( ) > { let db = Db :: connect ( opts ) . await ? ; db . create_schema ( ) . await ? ; Ok ( ( ) ) }
Initialize schema and close connection.
Initialize schema and close connection .
opts
&DbOpt
opts
&DbOpt