pub fn base(&self, base_name: impl AsRef<str>) -> Self {
        Self {
            base_name: Some(Arc::new(base_name.as_ref().to_string())),
            ..self.clone()
        }
    }
/// Sets the name of the database for the client.
///
/// This internally clones the client and sets the name of the database.
///
/// # Arguments
///
/// * `base_name`: The name of the database.
///
/// # Examples
///
/// ```
/// use deta::Deta;
/// # fn main() -> deta::Result<()> {
/// let deta = Deta::new()?;
///
/// let db_main = deta.base("main");
/// let db_test = deta.base("test");
/// # Ok(())
/// # }
/// ```
Sets the name of the database for the client.
This internally clones the client and sets the name of the database.
Sets the name of the database for the client . This internally clones the client and sets the name of the database .
pub fn base(&self, base_name: impl AsRef<str>) -> Self {
        Self {
            base_name: Some(Arc::new(base_name.as_ref().to_string())),
            ..self.clone()
        }
    }
pub fn base ( & self , base_name : impl AsRef < str > ) -> Self { Self { base_name : Some ( Arc :: new ( base_name . as_ref ( ) . to_string ( ) ) ) , .. self . clone ( ) } }
Sets the name of the database for the client.
Sets the name of the database for the client .
&self
base_name
impl AsRef<str>
&self
base_name
impl AsRef<str>
examples
None
fn main() -> deta::result<()> {
let deta = Deta::new()?.

let db_main = deta.base("main");
let db_test = deta.base("test").
let deta = Deta :: new () ? . let db_main = deta . base ( " main " ) ; let db_test = deta . base ( " test " ) .
ok(())
None
}
None