69 virtual void listNames(std::vector<std::string> &res) = 0;
79 virtual void getModKeys(
const std::string &modname, std::vector<std::string> *storage) = 0;
80 virtual bool hasModEntry(
const std::string &modname,
const std::string &key) = 0;
82 const std::string &key, std::string *value) = 0;
84 const std::string &key, std::string_view value) = 0;
85 virtual bool removeModEntry(
const std::string &modname,
const std::string &key) = 0;
87 virtual void listMods(std::vector<std::string> *res) = 0;
virtual void listNames(std::vector< std::string > &res)=0
virtual bool saveAuth(const AuthEntry &authEntry)=0
virtual bool createAuth(AuthEntry &authEntry)=0
virtual ~AuthDatabase()=default
virtual bool getAuth(const std::string &name, AuthEntry &res)=0
virtual bool deleteAuth(const std::string &name)=0
virtual void beginSave()=0
virtual bool initialized() const
Definition database.h:19
virtual ~MapDatabase()=default
virtual bool saveBlock(const v3s16 &pos, std::string_view data)=0
static v3s16 getIntegerAsBlock(s64 i)
Definition database.cpp:44
static s64 getBlockAsInteger(const v3s16 &pos)
Definition database.cpp:36
virtual void listAllLoadableBlocks(std::vector< v3s16 > &dst)=0
virtual bool deleteBlock(const v3s16 &pos)=0
virtual void loadBlock(const v3s16 &pos, std::string *block)=0
virtual void getModEntries(const std::string &modname, StringMap *storage)=0
virtual void listMods(std::vector< std::string > *res)=0
virtual bool hasModEntry(const std::string &modname, const std::string &key)=0
virtual bool setModEntry(const std::string &modname, const std::string &key, std::string_view value)=0
virtual ~ModStorageDatabase()=default
virtual bool removeModEntry(const std::string &modname, const std::string &key)=0
virtual bool getModEntry(const std::string &modname, const std::string &key, std::string *value)=0
virtual void getModKeys(const std::string &modname, std::vector< std::string > *storage)=0
virtual bool removeModEntries(const std::string &modname)=0
virtual bool removePlayer(const std::string &name)=0
virtual void listPlayers(std::vector< std::string > &res)=0
virtual ~PlayerDatabase()=default
virtual bool loadPlayer(RemotePlayer *player, PlayerSAO *sao)=0
virtual void savePlayer(RemotePlayer *player)=0
Definition player_sao.h:56
Definition remoteplayer.h:26
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
std::unordered_map< std::string, std::string > StringMap
Definition string.h:65
u64 id
Definition database.h:53
std::vector< std::string > privileges
Definition database.h:56
std::string name
Definition database.h:54
std::string password
Definition database.h:55
s64 last_login
Definition database.h:57