mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
plan search db
This commit is contained in:
1 parent
ec14023c04
commit
a97da3fa1d
6 files changed
+61
-23
No files matched your search
@@ -31,7 +31,7 @@ impl YomitanDatabase {
|
||||
}
|
||||
|
||||
fn decompressor(&self) -> Result<Decompressor<'_>, CJDicError> {
|
||||
let conn = self.db.conn.lock().unwrap();
|
||||
let conn = self.db.conn.lock()?;
|
||||
|
||||
let row = conn.query_row(
|
||||
"SELECT value FROM glossary.meta WHERE key = 'zstd_dict'",
|
||||
@@ -79,7 +79,7 @@ impl YomitanDatabase {
|
||||
let eq1 = if q_term_norm.len() > 0 { "GLOB" } else { "=" };
|
||||
let eq2 = if q_reading.len() > 0 { "GLOB" } else { "=" };
|
||||
|
||||
let conn = self.db.conn.lock().unwrap();
|
||||
let conn = self.db.conn.lock()?;
|
||||
conn.execute_batch(
|
||||
"
|
||||
CREATE TEMP TABLE IF NOT EXISTS yomitan_lookup_keys (
|
||||
|
||||
Reference in new issue
Block a user