Function connect

Source
pub fn connect<T>(config: Config, tls: T, pool_size: usize) -> PgPool<T>
where T: MakeTlsConnect<Socket> + Clone + Send + Sync, T::Stream: Send + Sync + 'static, T::TlsConnect: Send + Sync, <T::TlsConnect as TlsConnect<Socket>>::Future: Send,
Expand description

Creates a new PostgreSQL connection pool.