Luanti 5.16.0-dev
Loading...
Searching...
No Matches
Database Class Referenceabstract

#include <database.h>

Inheritance diagram for Database:

Public Member Functions

virtual void beginSave ()=0
virtual void endSave ()=0
virtual bool initialized () const
virtual void verifyDatabase ()
 Open and initialize the database if needed.

Member Function Documentation

◆ beginSave()

virtual void Database::beginSave ( )
pure virtual

Implemented in Database_Dummy, Database_LevelDB, Database_PostgreSQL, Database_Redis, Database_SQLite3, and ModStorageDatabaseFiles.

Referenced by Server::migrateModStorageDatabase(), and recompress_map_database().

Here is the caller graph for this function:

◆ endSave()

virtual void Database::endSave ( )
pure virtual

Implemented in Database_Dummy, Database_LevelDB, Database_PostgreSQL, Database_Redis, Database_SQLite3, and ModStorageDatabaseFiles.

Referenced by Server::migrateModStorageDatabase(), and recompress_map_database().

Here is the caller graph for this function:

◆ initialized()

virtual bool Database::initialized ( ) const
inlinevirtual
Returns
true if database connection is open

Reimplemented in Database_PostgreSQL, and Database_SQLite3.

Referenced by ServerMap::createDatabase().

Here is the caller graph for this function:

◆ verifyDatabase()

virtual void Database::verifyDatabase ( )
inlinevirtual

Open and initialize the database if needed.

Reimplemented in Database_PostgreSQL, and Database_SQLite3.

Referenced by ServerMap::createDatabase().

Here is the caller graph for this function:

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