SmartLockerTools/Database/Database.h

20 lines
346 B
C
Raw Permalink Normal View History

#ifndef __DATABASE_H__
#define __DATABASE_H__
2024-05-24 10:23:05 +08:00
#include "DataStructure.h"
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;
private:
void initializeTables();
sqlite3 *m_sqlite = nullptr;
};
#endif // __DATABASE_H__