mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 10:39:27 +02:00
Add comments.
This commit is contained in:
parent
d898d518c9
commit
b6776fcaed
2 changed files with 9 additions and 2 deletions
|
@ -86,7 +86,7 @@ bool MrMailbox::Open(const char* dbfile)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// prepare statements
|
// prepare statements (we do it when the tables really exists, however, I do not know if sqlite relies on this)
|
||||||
m_stmt_SELECT_value_FROM_config_k = sqlite3_prepare_v2_("SELECT value FROM config WHERE keyname=?;");
|
m_stmt_SELECT_value_FROM_config_k = sqlite3_prepare_v2_("SELECT value FROM config WHERE keyname=?;");
|
||||||
m_stmt_INSERT_INTO_config_kv = sqlite3_prepare_v2_("INSERT INTO config (keyname, value) VALUES (?, ?);");
|
m_stmt_INSERT_INTO_config_kv = sqlite3_prepare_v2_("INSERT INTO config (keyname, value) VALUES (?, ?);");
|
||||||
m_stmt_UPDATE_config_vk = sqlite3_prepare_v2_("UPDATE config SET value=? WHERE keyname=?;");
|
m_stmt_UPDATE_config_vk = sqlite3_prepare_v2_("UPDATE config SET value=? WHERE keyname=?;");
|
||||||
|
@ -153,6 +153,11 @@ void MrMailbox::Connect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MrMailbox::Disconnect()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Handle contacts
|
* Handle contacts
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
@ -324,7 +329,7 @@ bool MrMailbox::sqlite3_table_exists_(const char* name)
|
||||||
sqlite3_stmt* stmt = NULL;
|
sqlite3_stmt* stmt = NULL;
|
||||||
int sqlState;
|
int sqlState;
|
||||||
|
|
||||||
if( (querystr=sqlite3_mprintf("PRAGMA table_info(%s)", name)) == NULL ) {
|
if( (querystr=sqlite3_mprintf("PRAGMA table_info(%s)", name)) == NULL ) { // this statement cannot be used with binded variables
|
||||||
goto table_exists_Error;
|
goto table_exists_Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -352,3 +357,4 @@ table_exists_Error:
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ public:
|
||||||
|
|
||||||
// connect to the mailbox: error are be received asynchronously.
|
// connect to the mailbox: error are be received asynchronously.
|
||||||
void Connect ();
|
void Connect ();
|
||||||
|
void Disconnect ();
|
||||||
|
|
||||||
// iterate contacts
|
// iterate contacts
|
||||||
size_t GetContactCnt ();
|
size_t GetContactCnt ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue