version 0.3.29
[fms.git] / include / db / sqlite3db / sqlite3db.h
index 91bdfec..59fb89d 100644 (file)
@@ -1,23 +1,22 @@
 #ifndef _sqlite3db_\r
 #define _sqlite3db_\r
 \r
-//#include <zthread/Singleton.h>\r
-//#include <zthread/Mutex.h>\r
 #include <sqlite3.h>\r
 #include <string>\r
-#include "../../pthreadwrapper/singleton.h"\r
-#include "../../pthreadwrapper/mutex.h"\r
-\r
 #include "../sqlite3db.h"\r
 \r
+#if SQLITE_VERSION_NUMBER<3006006\r
+#error "Your version of SQLite is too old!  3.6.6.2 or later is required."\r
+#endif\r
+\r
 namespace SQLite3DB\r
 {\r
 \r
-class DB:public PThread::Singleton<DB>\r
+class DB\r
 {\r
 public:\r
        DB();\r
-       DB(std::string filename);\r
+       DB(const std::string &filename);\r
        ~DB();\r
        \r
        const bool Open(const std::string &filename);\r
@@ -37,8 +36,6 @@ public:
 \r
        sqlite3 *GetDB() { return m_db; }\r
 \r
-       PThread::Mutex m_mutex;                 // public so that recordset and statment can lock this mutex themselves\r
-\r
 private:\r
        void Initialize();\r
        \r