diff --git a/src/db/mod.rs b/src/db/mod.rs index 82a8079..1e5882f 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -193,6 +193,10 @@ impl DB { Ok(db) } + + pub fn with_name(self, name: String) -> Self { + Self { name, ..self } + } } pub trait DbCollection {