todors 0.10.7

todo app with CLI, REST & gRPC interfaces
1
2
3
4
5
6
7
8
9
10
11
#[cfg(feature = "sqlite")]
mod sqlite;

#[cfg(feature = "sqlite")]
pub use sqlite::*;

pub async fn connect(conn_str: &str, max_conn: Option<u32>) -> Result<Pool, sqlx::Error> {
    let pool = init_pool(conn_str, max_conn).await?;
    apply_migrations(&pool).await?;
    Ok(pool)
}