nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

test_util.rs (216B)


      1 use std::fs;
      2 use std::path::Path;
      3 
      4 #[allow(dead_code)]
      5 pub fn cleanup_db(path: &str) {
      6     let p = Path::new(path);
      7     let _ = fs::remove_file(p.join("data.mdb"));
      8     let _ = fs::remove_file(p.join("lock.mdb"));
      9 }