about summary refs log blame commit diff stats
path: root/include/sqliteinterface.hpp
blob: 42965d220ea302d40922f884144b47dc32823712 (plain) (tree)
1
2
3
4
5
6
7



                         
                    
                     
 






                           
                            
                                            
                                                                               
                                                         



                    
       
#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