#![allow(clippy::mutable_key_type, clippy::inline_always)]
mod accessor;
pub(crate) mod bucket;
mod client;
mod config;
mod discovery;
mod error;
mod instance;
mod manager;
pub(crate) mod metadata;
mod pool;
mod strategy;
mod tls;
pub(crate) mod topology;
pub use client::*;
pub use config::*;
pub use error::*;
pub use strategy::*;
pub use topology::view::{BucketMap, Instance, Replicaset, Tier, Topology};
pub async fn connect(config: &str) -> Result<Client, Error> {
let cfg = Config::from(config.parse::<pg::Config>()?);
Client::new(cfg).await
}
pub async fn connect_cfg(cfg: Config) -> Result<Client, Error> {
Client::new(cfg).await
}