mirror of
https://github.com/actix/examples
synced 2025-04-22 08:34:52 +02:00
feat: fixed link to details about pooled connection initialization
This commit is contained in:
parent
f53394c132
commit
14fbe6d334
@ -98,7 +98,7 @@ async fn main() -> io::Result<()> {
|
|||||||
|
|
||||||
/// Initialize database connection pool based on `DATABASE_URL` environment variable.
|
/// Initialize database connection pool based on `DATABASE_URL` environment variable.
|
||||||
///
|
///
|
||||||
/// See more: <https://docs.rs/diesel/latest/diesel/r2d2/index.html>.
|
/// See more: <https://docs.rs/diesel-async/latest/diesel_async/pooled_connection/index.html#modules>.
|
||||||
async fn initialize_db_pool() -> DbPool {
|
async fn initialize_db_pool() -> DbPool {
|
||||||
let db_url = env::var("DATABASE_URL").expect("Env var `DATABASE_URL` not set");
|
let db_url = env::var("DATABASE_URL").expect("Env var `DATABASE_URL` not set");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user