version 0.3.29
[fms.git] / include / dbsetup.h
1 #ifndef _dbsetup_\r
2 #define _dbsetup_\r
3 \r
4 #include <string>\r
5 \r
6 #include "db/sqlite3db.h"\r
7 \r
8 // opens database and creates tables and initial inserts if necessary\r
9 void SetupDB(SQLite3DB::DB *db);\r
10 // verifies DB isn't corrupt\r
11 const bool VerifyDB(SQLite3DB::DB *db);\r
12 \r
13 // returns result of PRAGMA integrity_check\r
14 const std::string TestDBIntegrity(SQLite3DB::DB *db);\r
15 \r
16 #endif  // _dbsetup_\r