create DB.with_name method
This commit is contained in:
parent
3acd168155
commit
9e99064bc5
@ -193,6 +193,10 @@ impl DB {
|
||||
|
||||
Ok(db)
|
||||
}
|
||||
|
||||
pub fn with_name(self, name: String) -> Self {
|
||||
Self { name, ..self }
|
||||
}
|
||||
}
|
||||
|
||||
pub trait DbCollection {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user