i did nothing
This commit is contained in:
parent
846bc6ef2f
commit
6491e7170b
2 changed files with 10 additions and 7 deletions
|
@ -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 **/
|
||||
|
|
|
@ -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 !!
|
||||
|
|
Loading…
Reference in a new issue