i did nothing

This commit is contained in:
malloc 2018-04-25 17:00:47 -05:00
parent 846bc6ef2f
commit 6491e7170b
2 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,8 @@
#include <vector>
const char* _mem_db_sql =
"CREATE TABLE ";
"CREATE TABLE SERVER_LIST ( "
");";
const std::vector<const char*> _hard_db_sql = {
/** START MIGRATION 0 **/

View file

@ -3,6 +3,7 @@
#include "sqlite/sqlite3.h"
#include <vector>
#include <string>
namespace sosc {
namespace db {
@ -15,14 +16,15 @@ private:
class Query {
public:
template<typename T>
static T ScalarOnce();
static void NonQueryOnce();
static ResultSet Once();
Query();
Query(const std::string& query);
void SetQuery(const std::string& query);
void Reset();
void Close();
private:
std::string query;
bool open;
};
// THE FOLLOWING ARE NOT THREAD SAFE !!