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