create DB.with_name method

This commit is contained in:
Akulij 2025-05-27 04:09:05 +05:00
parent 3acd168155
commit 9e99064bc5

View File

@ -193,6 +193,10 @@ impl DB {
Ok(db) Ok(db)
} }
pub fn with_name(self, name: String) -> Self {
Self { name, ..self }
}
} }
pub trait DbCollection { pub trait DbCollection {