X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fdb%2Fsqlite3db%2Fsqlite3db.h;h=59fb89dadd7fc260da0ef938e173ef46ff60a1fd;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=b41f3b8f29bcd54d25cfdba7bb3eec3669b83a28;hpb=df316253862dc50e8e5a790d9634ef90be37badb;p=fms.git diff --git a/include/db/sqlite3db/sqlite3db.h b/include/db/sqlite3db/sqlite3db.h index b41f3b8..59fb89d 100644 --- a/include/db/sqlite3db/sqlite3db.h +++ b/include/db/sqlite3db/sqlite3db.h @@ -1,27 +1,22 @@ #ifndef _sqlite3db_ #define _sqlite3db_ -//#include -//#include #include #include -#include "../../pthreadwrapper/mutex.h" #include "../sqlite3db.h" -#include "../../pthreadwrapper/singleton.h" - -#if SQLITE_VERSION_NUMBER<3005000 -#error "Your version of SQLite is too old! 3.5.0 or later is required." +#if SQLITE_VERSION_NUMBER<3006006 +#error "Your version of SQLite is too old! 3.6.6.2 or later is required." #endif namespace SQLite3DB { -class DB:public PThread::Singleton +class DB { public: DB(); - DB(std::string filename); + DB(const std::string &filename); ~DB(); const bool Open(const std::string &filename); @@ -41,8 +36,6 @@ public: sqlite3 *GetDB() { return m_db; } - PThread::Mutex m_mutex; // public so that recordset and statment can lock this mutex themselves - private: void Initialize();