/
rqust
/
CalculatorTgBot
Обзор
Документация
Войти
/
rqust
/
CalculatorTgBot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
data_base/data_base.h
21 строка
367 B
RQUST
solution 1 with DataBase
19 июн 2024, 22:58
19 июн 2024, 22:58
d17f7d7
Код
Авторство
О чём код?
#ifndef DATABASE_H #define DATABASE_H #include <sqlite3.h> #include <string> #include <vector> #include <tuple> class Database { private: sqlite3* db_; public: Database(); ~Database(); void InsertLog(int64_t chat_id, int result); [[nodiscard]] std::vector<std::tuple<std::string, int>> GetLastTenLogs(int64_t chat_id) const; }; #endif // DATABASE_H