refactor: rename dc_sqlite3 to sql

This commit is contained in:
dignifiedquire
2019-07-12 21:57:34 +02:00
parent f3884e30ac
commit 8714599655
25 changed files with 377 additions and 417 deletions

View File

@@ -2,8 +2,8 @@ use std::borrow::Cow;
use crate::constants::*;
use crate::context::Context;
use crate::dc_sqlite3::*;
use crate::key::*;
use crate::sql::{self, Sql};
#[derive(Default, Clone, Debug)]
pub struct Keyring<'a> {
@@ -31,9 +31,9 @@ impl<'a> Keyring<'a> {
&mut self,
context: &Context,
self_addr: impl AsRef<str>,
sql: &SQLite,
sql: &Sql,
) -> bool {
dc_sqlite3_query_row(
sql::query_row(
context,
sql,
"SELECT private_key FROM keypairs ORDER BY addr=? DESC, is_default DESC;",