mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
use GLOB, not LIKE
This commit is contained in:
1 parent
8330a78c12
commit
707c4274d1
3 files changed
+38
-22
No files matched your search
@@ -1,11 +1,15 @@
|
||||
use std::time::Instant;
|
||||
|
||||
use anyhow::Ok;
|
||||
use cjdic2_core::db::search_yomitan;
|
||||
use rusqlite::Connection;
|
||||
|
||||
fn main() -> Result<(), anyhow::Error> {
|
||||
let conn = &mut Connection::open("test.db")?;
|
||||
|
||||
let start = Instant::now();
|
||||
let rs = search_yomitan(conn, "食べる", "食べる", 5, 0)?;
|
||||
println!("{:#?}", rs);
|
||||
println!("{:#?}\n[{:.2?}]", rs, start.elapsed());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user