Initial commit: Full Crawl API implementation
This commit is contained in:
7
crates/db/src/connection.rs
Normal file
7
crates/db/src/connection.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use sqlx::PgPool;
|
||||
|
||||
pub type DbPool = PgPool;
|
||||
|
||||
pub async fn create_pool(database_url: &str) -> Result<DbPool, sqlx::Error> {
|
||||
PgPool::connect(database_url).await
|
||||
}
|
||||
Reference in New Issue
Block a user