mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
add delete dict operations
This commit is contained in:
1 parent
fa5bfb56b0
commit
1e91f21ca4
8 files changed
+129
-44
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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 rs = service.search_yomitan("擦る", "する", 10, 0)?;
|
||||
println!("{:#?}", rs);
|
||||
println!("n={}", rs.len());
|
||||
println!("[{:.2?}]", start.elapsed());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user