#include <wx/xrc/xmlres.h>
+#include <exception>
+
+#include <boost/filesystem.hpp>
+
#include <wx/msgdlg.h>
#include "GikoMona.hpp"
wxXmlResource::Get()->InitAllHandlers();
wxXmlResource::Get()->LoadAllFiles(wxT("resouce"));
+ boost::system::error_code reason;
+ if(!boost::filesystem::create_directory(".tmp", reason) || reason) {
+ // log
+ std::terminate();
+ }
+
app_model = new model;
app_extension = new extension;
+
+ return true;
}
void done_core() noexcept {
void optimize_database(const boost::filesystem::path& db_path) {
database db(db_path);
+ /*
+ auto value = db.compile(u8"SELECT * FROM file-information;");
+ value.execute();
+ value.get_result<int>();
+ */
if(db.select<int>("count-of-deleting-values", "file-infomation") >= 1000) {
db.optimize();
}