#ifndef SQLITEINTERFACE_H #define SQLITEINTERFACE_H #include #include #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