#include "database-sqlite3.h"
#include "log.h"
#include "filesys.h"
#include "exceptions.h"
#include "settings.h"
#include "porting.h"
#include "util/string.h"
#include "remoteplayer.h"
#include "irrlicht_changes/printing.h"
#include "server/player_sao.h"
#include <cassert>
Macros | |
#define | BUSY_INFO_TRESHOLD 100 |
#define | BUSY_WARNING_TRESHOLD 250 |
#define | BUSY_ERROR_TRESHOLD 1000 |
#define | BUSY_FATAL_TRESHOLD 3000 |
#define | BUSY_ERROR_INTERVAL 10000 |
#define | SQLRES(s, r, m) |
#define | SQLOK(s, m) SQLRES(s, SQLITE_OK, m) |
#define | PREPARE_STATEMENT(name, query) |
#define | SQLOK_ERRSTREAM(s, m) |
#define | FINALIZE_STATEMENT(statement) |
#define BUSY_ERROR_INTERVAL 10000 |
Referenced by Database_SQLite3::busyHandler().
#define BUSY_ERROR_TRESHOLD 1000 |
Referenced by Database_SQLite3::busyHandler().
#define BUSY_FATAL_TRESHOLD 3000 |
Referenced by Database_SQLite3::busyHandler().
#define BUSY_INFO_TRESHOLD 100 |
Referenced by Database_SQLite3::busyHandler().
#define BUSY_WARNING_TRESHOLD 250 |
Referenced by Database_SQLite3::busyHandler().
#define FINALIZE_STATEMENT | ( | statement | ) |
Referenced by AuthDatabaseSQLite3::~AuthDatabaseSQLite3(), Database_SQLite3::~Database_SQLite3(), MapDatabaseSQLite3::~MapDatabaseSQLite3(), ModStorageDatabaseSQLite3::~ModStorageDatabaseSQLite3(), PlayerDatabaseSQLite3::~PlayerDatabaseSQLite3(), and RollbackManager::~RollbackManager().
#define PREPARE_STATEMENT | ( | name, | |
query ) |
Referenced by AuthDatabaseSQLite3::initStatements(), MapDatabaseSQLite3::initStatements(), ModStorageDatabaseSQLite3::initStatements(), PlayerDatabaseSQLite3::initStatements(), and Database_SQLite3::verifyDatabase().
#define SQLOK | ( | s, | |
m ) SQLRES(s, SQLITE_OK, m) |
Referenced by RollbackManager::actionRowsFromSelect(), MapDatabaseSQLite3::bindPos(), AuthDatabaseSQLite3::createDatabase(), MapDatabaseSQLite3::createDatabase(), ModStorageDatabaseSQLite3::createDatabase(), PlayerDatabaseSQLite3::createDatabase(), RollbackManager::createTables(), RollbackManager::getActorId(), ModStorageDatabaseSQLite3::getModEntry(), RollbackManager::getNodeId(), ModStorageDatabaseSQLite3::hasModEntry(), RollbackManager::initDatabase(), Database_SQLite3::openDatabase(), RollbackManager::registerRow(), ModStorageDatabaseSQLite3::removeModEntry(), MapDatabaseSQLite3::saveBlock(), and ModStorageDatabaseSQLite3::setModEntry().
#define SQLOK_ERRSTREAM | ( | s, | |
m ) |
Referenced by Database_SQLite3::~Database_SQLite3(), and RollbackManager::~RollbackManager().
#define SQLRES | ( | s, | |
r, | |||
m ) |
Referenced by Database_SQLite3::beginSave(), Database_SQLite3::endSave(), RollbackManager::getActorId(), RollbackManager::getNodeId(), MapDatabaseSQLite3::saveBlock(), and ModStorageDatabaseSQLite3::setModEntry().