X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fdbsetup.h;h=4b61a507384c0d083a4cb17085b2529d92c46d7b;hb=HEAD;hp=2738e5a31e940a08646acf0b5d94f4d4e06ece58;hpb=278ee758050cb7772cd95946688c5b40104f4d8b;p=fms.git diff --git a/include/dbsetup.h b/include/dbsetup.h index 2738e5a..4b61a50 100644 --- a/include/dbsetup.h +++ b/include/dbsetup.h @@ -1,9 +1,16 @@ #ifndef _dbsetup_ #define _dbsetup_ +#include + +#include "db/sqlite3db.h" + // opens database and creates tables and initial inserts if necessary -void SetupDB(); +void SetupDB(SQLite3DB::DB *db); // verifies DB isn't corrupt -const bool VerifyDB(); +const bool VerifyDB(SQLite3DB::DB *db); + +// returns result of PRAGMA integrity_check +const std::string TestDBIntegrity(SQLite3DB::DB *db); #endif // _dbsetup_