version 0.3.29
[fms.git] / include / dbsetup.h
index 2738e5a..4b61a50 100644 (file)
@@ -1,9 +1,16 @@
 #ifndef _dbsetup_\r
 #define _dbsetup_\r
 \r
+#include <string>\r
+\r
+#include "db/sqlite3db.h"\r
+\r
 // opens database and creates tables and initial inserts if necessary\r
-void SetupDB();\r
+void SetupDB(SQLite3DB::DB *db);\r
 // verifies DB isn't corrupt\r
-const bool VerifyDB();\r
+const bool VerifyDB(SQLite3DB::DB *db);\r
+\r
+// returns result of PRAGMA integrity_check\r
+const std::string TestDBIntegrity(SQLite3DB::DB *db);\r
 \r
 #endif // _dbsetup_\r