added shadowrun database
This commit is contained in:
21
src/database/database.hpp
Normal file
21
src/database/database.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __DATABASE_H__
|
||||
#define __DATABASE_H__
|
||||
|
||||
#include "sqlite3.h"
|
||||
#include <string>
|
||||
|
||||
class Database {
|
||||
|
||||
public:
|
||||
Database();
|
||||
~Database();
|
||||
|
||||
bool open();
|
||||
bool exec(const char* sqlQuery);
|
||||
bool exec(const std::string& sqlQuery);
|
||||
|
||||
private:
|
||||
sqlite3* m_db;
|
||||
};
|
||||
|
||||
#endif // __DATABASE_H__
|
||||
Reference in New Issue
Block a user