#include <database-sqlite3.h>
Inheritance diagram for ModStorageDatabaseSQLite3:
Collaboration diagram for ModStorageDatabaseSQLite3:Public Member Functions | |
| ModStorageDatabaseSQLite3 (const std::string &savedir) | |
| virtual | ~ModStorageDatabaseSQLite3 () |
| virtual void | getModEntries (const std::string &modname, StringMap *storage) |
| virtual void | getModKeys (const std::string &modname, std::vector< std::string > *storage) |
| virtual bool | getModEntry (const std::string &modname, const std::string &key, std::string *value) |
| virtual bool | hasModEntry (const std::string &modname, const std::string &key) |
| virtual bool | setModEntry (const std::string &modname, const std::string &key, std::string_view value) |
| virtual bool | removeModEntry (const std::string &modname, const std::string &key) |
| virtual bool | removeModEntries (const std::string &modname) |
| virtual void | listMods (std::vector< std::string > *res) |
Public Member Functions inherited from ModStorageDatabase | |
| virtual | ~ModStorageDatabase ()=default |
Protected Member Functions | |
| virtual void | createDatabase () |
| virtual void | initStatements () |
Private Attributes | |
| sqlite3_stmt * | m_stmt_get_mods = nullptr |
| sqlite3_stmt * | m_stmt_get_all = nullptr |
| sqlite3_stmt * | m_stmt_get_keys = nullptr |
| sqlite3_stmt * | m_stmt_get = nullptr |
| sqlite3_stmt * | m_stmt_has = nullptr |
| sqlite3_stmt * | m_stmt_set = nullptr |
| sqlite3_stmt * | m_stmt_remove = nullptr |
| sqlite3_stmt * | m_stmt_remove_all = nullptr |
Private Attributes inherited from Database_SQLite3 | |
| sqlite3 * | m_database = nullptr |
Additional Inherited Members | |
Private Member Functions inherited from Database_SQLite3 | |
| virtual | ~Database_SQLite3 () |
| void | beginSave () override |
| void | endSave () override |
| bool | initialized () const override |
| void | verifyDatabase () override |
| Database_SQLite3 (const std::string &savedir, const std::string &dbname) | |
| bool | checkTable (const char *table) |
| bool | checkColumn (const char *table, const char *column) |
| void | str_to_sqlite (sqlite3_stmt *s, int iCol, std::string_view str) const |
| void | blob_to_sqlite (sqlite3_stmt *s, int iCol, std::string_view str) const |
| void | int_to_sqlite (sqlite3_stmt *s, int iCol, int val) const |
| void | int64_to_sqlite (sqlite3_stmt *s, int iCol, s64 val) const |
| void | double_to_sqlite (sqlite3_stmt *s, int iCol, double val) const |
| std::string_view | sqlite_to_string_view (sqlite3_stmt *s, int iCol) |
| std::string | sqlite_to_string (sqlite3_stmt *s, int iCol) |
| std::string_view | sqlite_to_blob (sqlite3_stmt *s, int iCol) |
| s32 | sqlite_to_int (sqlite3_stmt *s, int iCol) |
| u32 | sqlite_to_uint (sqlite3_stmt *s, int iCol) |
| s64 | sqlite_to_int64 (sqlite3_stmt *s, int iCol) |
| u64 | sqlite_to_uint64 (sqlite3_stmt *s, int iCol) |
| float | sqlite_to_float (sqlite3_stmt *s, int iCol) |
| const v3f | sqlite_to_v3f (sqlite3_stmt *s, int iCol) |
| void | sqlite3_vrfy (int s, std::string_view m="", int r=SQLITE_OK) const |
| void | sqlite3_vrfy (const int s, const int r, std::string_view m="") const |
| ModStorageDatabaseSQLite3::ModStorageDatabaseSQLite3 | ( | const std::string & | savedir | ) |
|
virtual |
|
protectedvirtual |
Implements Database_SQLite3.
References Database_SQLite3::m_database, and SQLOK.
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::m_database, m_stmt_get_all, Database_SQLite3::sqlite3_vrfy(), Database_SQLite3::sqlite_to_blob(), Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::blob_to_sqlite(), m_stmt_get, Database_SQLite3::sqlite_to_blob(), Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::m_database, m_stmt_get_keys, Database_SQLite3::sqlite3_vrfy(), Database_SQLite3::sqlite_to_blob(), Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::blob_to_sqlite(), m_stmt_has, Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
protectedvirtual |
Implements Database_SQLite3.
References PREPARE_STATEMENT, and remove().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::m_database, m_stmt_get_mods, Database_SQLite3::sqlite3_vrfy(), Database_SQLite3::sqlite_to_string_view(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::m_database, m_stmt_remove_all, Database_SQLite3::sqlite3_vrfy(), Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::blob_to_sqlite(), Database_SQLite3::m_database, m_stmt_remove, Database_SQLite3::sqlite3_vrfy(), Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
virtual |
Implements ModStorageDatabase.
References Database_SQLite3::blob_to_sqlite(), m_stmt_set, SQLRES, Database_SQLite3::str_to_sqlite(), and Database_SQLite3::verifyDatabase().
Here is the call graph for this function:
|
private |
Referenced by getModEntry().
|
private |
Referenced by getModEntries().
|
private |
Referenced by getModKeys().
|
private |
Referenced by listMods().
|
private |
Referenced by hasModEntry().
|
private |
Referenced by removeModEntry().
|
private |
Referenced by removeModEntries().
|
private |
Referenced by setModEntry().