pub async fn from_env() -> Result<Builder, Error> {
        let mut builder = Builder::uninitialized();

        // optimize discovering project if defined by environment variable
        if get_env("EDGEDB_HOST")?.is_none() &&
           get_port_env()?.is_none() &&
           get_env("EDGEDB_INSTANCE")?.is_none() &&
           get_env("EDGEDB_DSN")?.is_none() &&
           get_env("EDGEDB_CONFIGURATION_FILE")?.is_none()
        {
            builder.read_project(None, false).await?;
        }

        builder.read_env_vars().await?;
        Ok(builder)
    }
/// Initializes a Builder using environment variables or project config.
Initializes a Builder using environment variables or project config.
Initializes a Builder using environment variables or project config .
pub async fn from_env() -> Result<Builder, Error> {
        let mut builder = Builder::uninitialized();
        // optimize discovering project if defined by environment variable
        if get_env("EDGEDB_HOST")?.is_none() &&
           get_port_env()?.is_none() &&
           get_env("EDGEDB_INSTANCE")?.is_none() &&
           get_env("EDGEDB_DSN")?.is_none() &&
           get_env("EDGEDB_CONFIGURATION_FILE")?.is_none()
        {
            builder.read_project(None, false).await?;
        }
        builder.read_env_vars().await?;
        Ok(builder)
    }
pub async fn from_env ( ) -> Result < Builder , Error > { let mut builder = Builder :: uninitialized ( ) ; // optimize discovering project if defined by environment variable if get_env ( " " ) ? . is_none ( ) && get_port_env ( ) ? . is_none ( ) && get_env ( " " ) ? . is_none ( ) && get_env ( " " ) ? . is_none ( ) && get_env ( " " ) ? . is_none ( ) { builder . read_project ( None , false ) . await ? ; } builder . read_env_vars ( ) . await ? ; Ok ( builder ) }
Initializes a Builder using environment variables or project config.
Initializes a Builder using environment variables or project config .