+\r
+const std::string TestDBIntegrity()\r
+{\r
+ std::string result="";\r
+\r
+ SQLite3DB::DB *db=SQLite3DB::DB::Instance();\r
+ SQLite3DB::Statement st=db->Prepare("PRAGMA integrity_check;");\r
+ st.Step();\r
+ while(st.RowReturned())\r
+ {\r
+ std::string text="";\r
+ st.ResultText(0,text);\r
+ result+=text;\r
+ st.Step();\r
+ }\r
+ return result;\r
+}\r