fix reinit
This commit is contained in:
parent
6a34099e17
commit
a8e72efea0
2 changed files with 27 additions and 11 deletions
|
@ -30,6 +30,13 @@ macro_rules! get_mongo {
|
|||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! id_of {
|
||||
($id:expr) => {
|
||||
doc! { "_id": $id}
|
||||
};
|
||||
}
|
||||
|
||||
pub struct ItemDB {
|
||||
index: mdq::Index,
|
||||
mongodb: mongodb::Client,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue