Files
crawlapi/crates/db/src/connection.rs
Developer 62994d4f3d
Some checks failed
CI / Test (push) Has been cancelled
Deploy / Deploy to Staging (push) Has been cancelled
CI / Build & Push (push) Has been cancelled
Deploy / Deploy to Production (push) Has been cancelled
Initial commit: Full Crawl API implementation
2026-04-29 07:03:48 +00:00

8 lines
166 B
Rust

use sqlx::PgPool;
pub type DbPool = PgPool;
pub async fn create_pool(database_url: &str) -> Result<DbPool, sqlx::Error> {
PgPool::connect(database_url).await
}