26 lines
377 B
C++
26 lines
377 B
C++
#pragma once
|
|
#include <memory>
|
|
#include <sqlite3.h>
|
|
|
|
#include "Database.h"
|
|
|
|
class SqliteInterface
|
|
{
|
|
sqlite3* mSqliteDb;
|
|
|
|
public:
|
|
|
|
SqliteInterface();
|
|
|
|
~SqliteInterface();
|
|
|
|
static std::shared_ptr<SqliteInterface> Create();
|
|
|
|
void Open(DatabasePtr db);
|
|
|
|
void Close();
|
|
|
|
void Run(const std::string& statement);
|
|
};
|
|
|
|
using SqliteInterfacePtr = std::shared_ptr<SqliteInterface>;
|