From e7c8e56b84bf36f2cdc607b032c2c6d8caa88920 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Tue, 17 Mar 2009 11:10:34 +0100 Subject: Check if table 'abrt' exists --- lib/Plugins/SQLite3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Plugins/SQLite3.h') 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); -- cgit