We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733f735 commit 72a03bfCopy full SHA for 72a03bf
crates/tap-agent/src/database.rs
@@ -5,6 +5,9 @@ use std::time::Duration;
5
6
use sqlx::{postgres::PgPoolOptions, PgPool};
7
8
+/// Uses `config` to connect to a postgres and returns a [PgPool] instance.
9
+///
10
+/// This function panics if it wasn't possible to connect to the Db.
11
pub async fn connect(config: indexer_config::DatabaseConfig) -> PgPool {
12
let url = &config.get_formated_postgres_url();
13
tracing::debug!(
0 commit comments