MCPcopy Create free account
hub / github.com/emwalker/digraph / db_connection

Function db_connection

backend/src/db.rs:7–10  ·  view source on GitHub ↗
(config: &Config)

Source from the content-addressed store, hash-verified

5use crate::config::Config;
6
7pub async fn db_connection(config: &Config) -> Result<Pool<Postgres>, Error> {
8 let database_url = config.digraph_postgres_connection.clone();
9 Pool::<Postgres>::connect(&database_url).await
10}

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected