blob: 42965d220ea302d40922f884144b47dc32823712 (
plain) (
tree)
|
|
#ifndef SQLITEINTERFACE_H
#define SQLITEINTERFACE_H
#include <string>
#include <sqlite3.h>
#include "video.hpp"
#include "invapi.hpp"
class SqliteInterface {
public:
SqliteInterface();
~SqliteInterface();
void openDB();
void closeDB();
void createTables();
void saveVideo(const Video::video&);
void saveInstance(const char *uri, float health, const char *location);
void saveInstance(const InvidiousApi::instance&);
private:
sqlite3* db;
};
#endif
|