cdbc_pg/options/
connect.rs

1use std::time::Duration;
2use cdbc::connection::ConnectOptions;
3use cdbc::error::Error;
4use crate::{PgConnectOptions, PgConnection};
5impl ConnectOptions for PgConnectOptions {
6    type Connection = PgConnection;
7
8    fn connect(&self,d:Duration) -> Result<Self::Connection, Error>
9    where
10        Self::Connection: Sized,
11    {
12       PgConnection::establish(self,d)
13    }
14}