#include <database.h>
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 |
|
virtualdefault |
|
pure virtual |
Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.
Referenced by ModApiAuth::l_auth_create(), TestAuthDatabase::testCreate(), and TestAuthDatabase::testListNames().
|
pure virtual |
Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.
Referenced by ModApiAuth::l_auth_delete(), and TestAuthDatabase::testDelete().
|
pure virtual |
Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.
Referenced by ModApiAuth::l_auth_read(), TestAuthDatabase::testChange(), TestAuthDatabase::testChangePrivileges(), TestAuthDatabase::testRecall(), TestAuthDatabase::testRecallChanged(), TestAuthDatabase::testRecallChangedPrivileges(), and TestAuthDatabase::testRecallFail().
|
pure virtual |
Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.
Referenced by ModApiAuth::l_auth_list_names(), and TestAuthDatabase::testListNames().
|
pure virtual |
Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.
Referenced by ModApiAuth::l_auth_reload().
|
pure virtual |
Implemented in AuthDatabaseFiles, AuthDatabaseLevelDB, AuthDatabasePostgreSQL, and AuthDatabaseSQLite3.
Referenced by ModApiAuth::l_auth_save(), TestAuthDatabase::testChange(), and TestAuthDatabase::testChangePrivileges().