Add deletion to create_db

This commit is contained in:
Luke Parker 2023-11-18 20:56:58 -05:00
parent 6e4ecbc90c
commit b018fc432c
No known key found for this signature in database

View file

@ -62,6 +62,10 @@ macro_rules! create_db {
bincode::deserialize(data.as_ref()).unwrap() 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),*))
}
} }
)* )*
}; };