3 #include "data_acces.h"
5 #include <cppconn/driver.h>
6 #include <cppconn/exception.h>
7 #include <cppconn/resultset.h>
8 #include <cppconn/statement.h>
9 #include <cppconn/prepared_statement.h>
22 void create_user(std::string user, std::string pass,
bool admin);
29 #endif // MSQL_ACCES_H
void write_remove(std::string)
write_remove Remove the information about generated package
Definition: msql_acces.cpp:95
Definition: data_acces.h:7
std::list< std::string > get_uinfo()
get_uinfo Get a list of the users and if they are admins or not
Definition: msql_acces.cpp:64
bool get_admin(std::string)
get_admin Get if the user is a admin or not
Definition: msql_acces.cpp:27
bool get_package_exists(std::string package)
get_package_exists Search if the package exists
Definition: msql_acces.cpp:103
void create_user(std::string user, std::string pass, bool admin)
create_user Create a new user with the passed data
Definition: msql_acces.cpp:115
std::string get_passwd(std::string username)
get_passwd Get the hash of the password that use the user
Definition: msql_acces.cpp:15
Definition: msql_acces.h:11
std::list< std::string > get_pinfo()
get_pinfo Get a list of the generated packages and the information about that
Definition: msql_acces.cpp:39
void remove_user(std::string user)
remove_user Remove a user
Definition: msql_acces.cpp:124
void write_install(std::string package, std::string user)
write_install Store information about package generation
Definition: msql_acces.cpp:86