diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-03-17 11:10:34 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-03-17 11:10:34 +0100 |
| commit | e7c8e56b84bf36f2cdc607b032c2c6d8caa88920 (patch) | |
| tree | 0972962f9025f4f4728af39be531583bcff0fcad /lib/Plugins/SQLite3.h | |
| parent | 686cdc4b410f4f9cae13a81ace0c57e88c6668c9 (diff) | |
| download | abrt-e7c8e56b84bf36f2cdc607b032c2c6d8caa88920.tar.gz abrt-e7c8e56b84bf36f2cdc607b032c2c6d8caa88920.tar.xz abrt-e7c8e56b84bf36f2cdc607b032c2c6d8caa88920.zip | |
Check if table 'abrt' exists
Diffstat (limited to 'lib/Plugins/SQLite3.h')
| -rw-r--r-- | lib/Plugins/SQLite3.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Plugins/SQLite3.h b/lib/Plugins/SQLite3.h index e3681d6..4903f6a 100644 --- a/lib/Plugins/SQLite3.h +++ b/lib/Plugins/SQLite3.h @@ -33,7 +33,10 @@ class CSQLite3 : public CDatabase std::string m_sDBPath; sqlite3* m_pDB; - void Create(); + bool OpenDB(); + bool CheckTable(); + void CreateDB(); + void CreateTable(); void Exec(const std::string& pCommand); void GetTable(const std::string& pCommand, vector_database_rows_t& pTable); bool Exist(const std::string& pUUID, const std::string& pUID); |
