Add database::DbConn type
This commit is contained in:
@@ -9,6 +9,7 @@ use crate::util::error::{Contextualize, Error, ErrorType};
|
||||
pub const DB_MIGRATIONS: EmbeddedMigrations = embed_migrations!();
|
||||
|
||||
pub type DbPool = Pool<AsyncPgConnection>;
|
||||
pub type DbConn = AsyncPgConnection;
|
||||
|
||||
/// Connect to the database using the given URI, and perform migrations
|
||||
pub async fn setup<S: Into<String>>(database_uri: S) -> Result<DbPool, Error> {
|
||||
|
||||
Reference in New Issue
Block a user