2024-05-22 20:17:07 +08:00
|
|
|
#ifndef __DATABASE_H__
|
|
|
|
#define __DATABASE_H__
|
|
|
|
|
2024-05-24 10:23:05 +08:00
|
|
|
#include "DataStructure.h"
|
2024-05-22 20:17:07 +08:00
|
|
|
|
|
|
|
struct sqlite3;
|
|
|
|
|
|
|
|
|
|
|
|
class Database{
|
|
|
|
public:
|
|
|
|
bool open(const std::string &path);
|
|
|
|
bool addPalmFeature(const PalmFeature &palm);
|
2024-05-24 10:23:05 +08:00
|
|
|
PalmFeatures palmFeatures() const;
|
2024-05-22 20:17:07 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
void initializeTables();
|
|
|
|
sqlite3 *m_sqlite = nullptr;
|
|
|
|
};
|
|
|
|
#endif // __DATABASE_H__
|