Rewrite electricity-logger to use an sqlite3 database
This commit is contained in:
20
include/solar/server/database/database.hpp
Normal file
20
include/solar/server/database/database.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <solar/server/database/connection.hpp>
|
||||
#include <sqlite3.h>
|
||||
#include <string>
|
||||
|
||||
namespace Database
|
||||
{
|
||||
class Database {
|
||||
private:
|
||||
sqlite3 * connectionPtr;
|
||||
|
||||
public:
|
||||
bool Connect(std::string const & path);
|
||||
|
||||
Connection GetConnection() const;
|
||||
|
||||
Database();
|
||||
~Database();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user