mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
add yomitan import db/scripts
This commit is contained in:
1 parent
c4103dda7d
commit
8330a78c12
10 files changed
+535
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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 rs = search_yomitan(conn, "食べる", "食べる", 5, 0)?;
|
||||
println!("{:#?}", rs);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user