#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