pub async fn connect() -> Result<Client, Error> {
    let pool = Client::new(Builder::from_env().await?);
    pool.ensure_connected().await?;
    Ok(pool)
}
/// Create a connection to the database with default parameters.
///
/// It's expected that connection parameters are set using the environment
/// (either environment variables or project configuration in `edgedb.toml`),
/// so no configuration is specified here.
///
/// This method tries to establish a single connection immediately to ensure
/// that the configuration is valid. It will return an error if it cannot do
/// so.
///
/// For more fine-grained setup see the [`Client`] and [`Builder`]
/// documentation and the source of this function.
Create a connection to the database with default parameters.
It's expected that connection parameters are set using the environment
(either environment variables or project configuration in `edgedb.toml`),
so no configuration is specified here.

This method tries to establish a single connection immediately to ensure
that the configuration is valid. It will return an error if it cannot do
so.

For more fine-grained setup see the [`Client`] and [`Builder`]
documentation and the source of this function.
Create a connection to the database with default parameters . It ' s expected that connection parameters are set using the environment ( either environment variables or project configuration in ` edgedb . toml ` ) so no configuration is specified here . This method tries to establish a single connection immediately to ensure that the configuration is valid . It will return an error if it cannot do so . For more fine - grained setup see the [ ` Client ` ] and [ ` Builder ` ] documentation and the source of this function .
pub async fn connect() -> Result<Client, Error> {
    let pool = Client::new(Builder::from_env().await?);
    pool.ensure_connected().await?;
    Ok(pool)
}
pub async fn connect ( ) -> Result < Client , Error > { let pool = Client :: new ( Builder :: from_env ( ) . await ? ) ; pool . ensure_connected ( ) . await ? ; Ok ( pool ) }
Create a connection to the database with default parameters.
Create a connection to the database with default parameters .