pub async fn read_instance(&mut self, name: &str)
        -> Result<&mut Self, Error>
    {
        if !is_valid_instance_name(name) {
            return Err(ClientError::with_message(format!(
                "instance name {:?} contains unsupported characters", name)));
        }
        self.read_credentials(
            config_dir()?.join("credentials").join(format!("{}.json", name))
        ).await?;
        self.instance_name = Some(name.into());
        Ok(self)
    }
/// Read credentials from the named instance.
///
/// Named instances are created using the command-line tool, either
/// directly:
/// ```shell
/// edgedb instance create <name>
/// ```
/// or when initializing a project:
/// ```shell
/// edgedb project init
/// ```
/// In the latter case you should use [`read_project()`][Builder::read_project]
/// instead if possible.
///
/// This will mark the builder as initialized (if reading is successful)
/// and overwrite all credentials. However, `insecure_dev_mode`, pools
/// sizes, and timeouts are kept intact.
Read credentials from the named instance.

This will mark the builder as initialized (if reading is successful)
and overwrite all credentials. However, `insecure_dev_mode`, pools
sizes, and timeouts are kept intact.
Read credentials from the named instance . This will mark the builder as initialized ( if reading is successful ) and overwrite all credentials . However ` insecure_dev_mode ` pools sizes and timeouts are kept intact .
pub async fn read_instance(&mut self, name: &str)
        -> Result<&mut Self, Error>
    {
        if !is_valid_instance_name(name) {
            return Err(ClientError::with_message(format!(
                "instance name {:?} contains unsupported characters", name)));
        }
        self.read_credentials(
            config_dir()?.join("credentials").join(format!("{}.json", name))
        ).await?;
        self.instance_name = Some(name.into());
        Ok(self)
    }
pub async fn read_instance ( & mut self , name : & str ) -> Result < & mut Self , Error > { if ! is_valid_instance_name ( name ) { return Err ( ClientError :: with_message ( format ! ( " " name ) ) ) ; } self . read_credentials ( config_dir ( ) ? . join ( " " ) . join ( format ! ( " " name ) ) ) . await ? ; self . instance_name = Some ( name . into ( ) ) ; Ok ( self ) }
Read credentials from the named instance.
Read credentials from the named instance .
&mut self
name
&str