Function create_postgres_pool

Source
pub async fn create_postgres_pool(
    store_addrs: &[String],
    cfg: Option<Config>,
    tls_config: Option<TlsOption>,
) -> Result<Pool>
Expand description

Creates a pool for the Postgres backend with config and optional TLS.

It only use first store addr to create a pool, and use the given config to create a pool.