projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.3.33
[fms.git]
/
include
/
dbsetup.h
diff --git
a/include/dbsetup.h
b/include/dbsetup.h
index
e3618d6
..
4b61a50
100644
(file)
--- a/
include/dbsetup.h
+++ b/
include/dbsetup.h
@@
-1,7
+1,16
@@
#ifndef _dbsetup_
\r
#define _dbsetup_
\r
\r
#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
// 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(SQLite3DB::DB *db);
\r
+
\r
+// returns result of PRAGMA integrity_check
\r
+const std::string TestDBIntegrity(SQLite3DB::DB *db);
\r
\r
#endif // _dbsetup_
\r
\r
#endif // _dbsetup_
\r