diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-23 14:35:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-23 14:35:08 +0200 |
commit | 29ab20c27229672c24a7699afbcd54caad903331 (patch) | |
tree | e42e7ea35f54b1439055abc500191eb29baa6355 /src/database-leveldb.h | |
parent | dda171d2925e20efc00c78bcb45cf595fd986da9 (diff) | |
download | minetest-29ab20c27229672c24a7699afbcd54caad903331.tar.gz minetest-29ab20c27229672c24a7699afbcd54caad903331.tar.bz2 minetest-29ab20c27229672c24a7699afbcd54caad903331.zip |
Player data to Database (#5475)
* Player data to Database
Add player data into databases (SQLite3 & PG only)
PostgreSQL & SQLite: better POO Design for databases
Add --migrate-players argument to server + deprecation warning
* Remove players directory if empty
Diffstat (limited to 'src/database-leveldb.h')
-rw-r--r-- | src/database-leveldb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/database-leveldb.h b/src/database-leveldb.h index 171946741..52ccebe70 100644 --- a/src/database-leveldb.h +++ b/src/database-leveldb.h @@ -28,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "database.h" #include "leveldb/db.h" -class Database_LevelDB : public Database +class Database_LevelDB : public MapDatabase { public: Database_LevelDB(const std::string &savedir); @@ -39,6 +39,8 @@ public: bool deleteBlock(const v3s16 &pos); void listAllLoadableBlocks(std::vector<v3s16> &dst); + void beginSave() {} + void endSave() {} private: leveldb::DB *m_database; }; |