Skip to content

Commit

Permalink
Add deletion to create_db
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Nov 19, 2023
1 parent 6e4ecbc commit b018fc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/db/src/create_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ macro_rules! create_db {
bincode::deserialize(data.as_ref()).unwrap()
})
}
#[allow(dead_code)]
pub fn del(txn: &mut impl DbTxn $(, $arg: $arg_type)*) {
txn.del(&$field_name::key($($arg),*))
}
}
)*
};
Expand Down

0 comments on commit b018fc4

Please sign in to comment.