Skip to main content

connect_with_metrics

Function connect_with_metrics 

Source
pub async fn connect_with_metrics(
    cfg: &DatabaseConfig,
    metrics: SharedDbMetricsRecorder,
) -> Result<DatabaseConnection>
Expand description

Connects to the configured database and installs a metrics callback.