Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
use crate::config::Config;
6
7
pub 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
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected