about summary refs log tree commit diff stats
path: root/include/sqliteinterface.hpp
blob: 42965d220ea302d40922f884144b47dc32823712 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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