add delete dict operations

This commit is contained in:
polv committed 2026-02-23 17:27:41 +07:00
1 parent fa5bfb56b0
commit 1e91f21ca4
8 files changed
+129 -44

No files matched your search

@@ -0,0 +1,18 @@
use std::time::Instant;
use anyhow::Ok;
use cjdic2_core::AppService;
mod common;
use common::get_db_dir;
fn main() -> Result<(), anyhow::Error> {
let service = AppService::new(get_db_dir())?;
let start = Instant::now();
let mut writer = service.get_yomitan_writer()?;
AppService::remove_yomitan_dictionary(&mut writer, "JMnedict")?;
println!("[{:.2?}]", start.elapsed());
Ok(())
}