X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fdbsetup.h;h=4b61a507384c0d083a4cb17085b2529d92c46d7b;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=e3618d63c41342f59da021f2dd35f37f26b59b7b;hpb=dec33c63afafabf83c3039e916725cac6faef9b3;p=fms.git diff --git a/include/dbsetup.h b/include/dbsetup.h index e3618d6..4b61a50 100644 --- a/include/dbsetup.h +++ b/include/dbsetup.h @@ -1,7 +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(SQLite3DB::DB *db); + +// returns result of PRAGMA integrity_check +const std::string TestDBIntegrity(SQLite3DB::DB *db); #endif // _dbsetup_