#ifndef _MARCELB_SQLITE3_ #define _MARCELB_SQLITE3_ #include #include #include #include #include #include #include #include using namespace std; namespace marcelb::SQlite3 { static string responseDatabase; static int callback(void* data, int argc, char** argv, char** azColName); class SQLite3 { mutex io; sqlite3* db; string path; bool keepOpen; bool open(); bool close(); map> parse(const string& result); public: // string Answer; // map> parsed; SQLite3(const string path, bool _keepOpen = false); map> query(const string sql_command); ~SQLite3(); }; } #endif