Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
AuthDatabase Class Referenceabstract

#include <database.h>

+ Inheritance diagram for AuthDatabase:

Public Member Functions

virtual ~AuthDatabase ()=default
 
virtual bool getAuth (const std::string &name, AuthEntry &res)=0
 
virtual bool saveAuth (const AuthEntry &authEntry)=0
 
virtual bool createAuth (AuthEntry &authEntry)=0
 
virtual bool deleteAuth (const std::string &name)=0
 
virtual void listNames (std::vector< std::string > &res)=0
 
virtual void reload ()=0
 

Constructor & Destructor Documentation

◆ ~AuthDatabase()

virtual AuthDatabase::~AuthDatabase ( )
virtualdefault

Member Function Documentation

◆ createAuth()

virtual bool AuthDatabase::createAuth ( AuthEntry & authEntry)
pure virtual

Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.

Referenced by ModApiAuth::l_auth_create(), TestAuthDatabase::testCreate(), and TestAuthDatabase::testListNames().

+ Here is the caller graph for this function:

◆ deleteAuth()

virtual bool AuthDatabase::deleteAuth ( const std::string & name)
pure virtual

Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.

Referenced by ModApiAuth::l_auth_delete(), and TestAuthDatabase::testDelete().

+ Here is the caller graph for this function:

◆ getAuth()

virtual bool AuthDatabase::getAuth ( const std::string & name,
AuthEntry & res )
pure virtual

◆ listNames()

virtual void AuthDatabase::listNames ( std::vector< std::string > & res)
pure virtual

Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.

Referenced by ModApiAuth::l_auth_list_names(), and TestAuthDatabase::testListNames().

+ Here is the caller graph for this function:

◆ reload()

virtual void AuthDatabase::reload ( )
pure virtual

Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.

Referenced by ModApiAuth::l_auth_reload().

+ Here is the caller graph for this function:

◆ saveAuth()

virtual bool AuthDatabase::saveAuth ( const AuthEntry & authEntry)
pure virtual

Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.

Referenced by ModApiAuth::l_auth_save(), TestAuthDatabase::testChange(), and TestAuthDatabase::testChangePrivileges().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: