summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SQLite3.h
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-03-17 11:10:34 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-03-17 11:10:34 +0100
commite7c8e56b84bf36f2cdc607b032c2c6d8caa88920 (patch)
tree0972962f9025f4f4728af39be531583bcff0fcad /lib/Plugins/SQLite3.h
parent686cdc4b410f4f9cae13a81ace0c57e88c6668c9 (diff)
downloadabrt-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.h5
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);