mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
Refactor the internal sql interface somewhat
Experiment with refactoring the internal sql interface a bit. My original goal was to modify the schema and thus refactor to a state where it would be sane to write tests for dc_sqlite_open() (and/or however it ends up refactored) to assert schame changes before/after.
This commit is contained in:
@@ -139,7 +139,7 @@ impl Key {
|
||||
pub fn from_self_public(
|
||||
context: &Context,
|
||||
self_addr: *const libc::c_char,
|
||||
sql: &dc_sqlite3_t,
|
||||
sql: &SQLite,
|
||||
) -> Option<Self> {
|
||||
if self_addr.is_null() {
|
||||
return None;
|
||||
@@ -169,7 +169,7 @@ impl Key {
|
||||
pub fn from_self_private(
|
||||
context: &Context,
|
||||
self_addr: *const libc::c_char,
|
||||
sql: &dc_sqlite3_t,
|
||||
sql: &SQLite,
|
||||
) -> Option<Self> {
|
||||
if self_addr.is_null() {
|
||||
return None;
|
||||
@@ -332,7 +332,7 @@ pub fn dc_key_save_self_keypair(
|
||||
private_key: &Key,
|
||||
addr: *const libc::c_char,
|
||||
is_default: libc::c_int,
|
||||
sql: &dc_sqlite3_t,
|
||||
sql: &SQLite,
|
||||
) -> bool {
|
||||
if addr.is_null() {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user