12 #ifndef RECAST_SERVER_SQLITE_H
13 #define RECAST_SERVER_SQLITE_H
15 #include <sqlite_orm/sqlite_orm.h>
20 using namespace sqlite_orm;
21 return make_storage(
"db.sqlite",
27 make_column(
"user_id",
46 make_column(
"password",
48 make_column(
"player_id",
70 #endif //RECAST_SERVER_SQLITE_H
int id
Definition: User.hpp:20
void setPosY(double y)
Definition: Player.hpp:31
const double & getPosX() const
Definition: Player.hpp:28
const double & getPosY() const
Definition: Player.hpp:30
auto create_db()
Definition: SQLite.hpp:19
void setPosX(double x)
Definition: Player.hpp:29
int playerId
Definition: User.hpp:21
User registerUser(std::string login, std::string password)
Definition: SQLite.cpp:17
int id
Definition: Player.hpp:23
std::string login
Definition: User.hpp:22
This class helps to easily put or get var from DB. Using sqlite_orm and sqlite.
Definition: SQLite.hpp:55
std::string password
Definition: User.hpp:23
void setPosZ(double z)
Definition: Player.hpp:33
SQLite()
Definition: SQLite.hpp:57
const double & getPosZ() const
Definition: Player.hpp:32
void update(Player player)
Definition: SQLite.cpp:43
User - technical data of a player (login, password and other)
Definition: User.hpp:18
User authUser(std::string login, std::string password)
Definition: SQLite.cpp:32
int userId
Definition: Player.hpp:26
Player class. XP, Life points and other.
Definition: Player.hpp:19