budget/src/database.h

25 lines
473 B
C++

//
// Created by quentin on 1/18/23.
//
#ifndef BUDGET_DATABASE_H
#define BUDGET_DATABASE_H
#include <string>
#include <sqlite3.h>
class Database {
public:
static bool doesAccountExist(const std::string &account, sqlite3 *db);
static bool deleteAccount(const std::string &account, sqlite3 *db);
static double getValue(const std::string &account, sqlite3 *db);
static double cacheAccountValue(long long accountId, sqlite3 *db);
};
#endif //BUDGET_DATABASE_H