aboutsummaryrefslogtreecommitdiff
path: root/src/database-sqlite3.cpp
Commit message (Collapse)AuthorAge
* Modernize src/c* src/d* and src/e* files (#6263)Loïc Blot2017-08-17
| | | | | | | | | | | | | | | | | * Modernize src/c* src/d* and src/e* files * default operator * redundant init * delete default constructors on CraftDefinition childs (never used) * fix some missing init values * const ref fix reported by clang-tidy * ranged-based for loops * simple conditions & returns * empty stl function instead of size * emplace_back stl function instead of push_back + construct temp obj * auto for some iterators * code style fixes * c++ stl headers instead of C stl headers (stdio.h -> cstdio)
* Inventory: Fix wrong stack size behaviour and item loss (#6039)SmallJoker2017-06-25
| | | | Also fix itemFits and remove constness-nonsense
* C++11 patchset 9: move hardcoded init parameters to class definitions (part ↵Loïc Blot2017-06-16
| | | | | | | | | | | | | | | | | | | | | | | | 1) (#5984) * C++11 patchset 9: move hardcoded init parameters to class definitions C++11 introduced the possibility to define the default values directly in class definitions, do it on current code Also remove some unused attributes * CollisionInfo::bouncy * collisionMoveResult::collides_xy * collisionMoveResult::standing_on_unloaded * Clouds::speed * More constructor cleanups + some variables removal * remove only write guiFormSpecMenu::m_old_tooltip * move header included inside defintions in genericobject.h * remove some unused since years exception classes * remove unused & empty debug_stacks_init * remove unused & empty content_nodemeta_serialize_legacy * remove forgotten useless bool (bouncy) in collision.cpp code
* Clean up getTime helpersShadowNinja2017-04-28
| | | | | | This increases size of the getTime return values to 64 bits. It also removes the TimeGetter classes since the getTime functions are now very precise.
* Player data to Database (#5475)Loïc Blot2017-04-23
| | | | | | | | | | | | * 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
* Fix -Wterminate warning on GCC 6est312016-07-08
| | | | Fixes #4137
* Implement DatabaseException for databasesnerzhul2016-05-17
|
* DB::loadBlock copy removal & DB backend cleanupLoic Blot2016-05-17
| | | | | * Remove the copy from db::loadBlock by using a pointer to the destination * cleanup db backend, the child backend doesn't have to set their functions as virtual
* Include custom error message in all SQLite3 exceptions.Rogier2015-12-30
| | | | And replace manual tests for error with SQLOK() where possible.
* Handle SQLITE_BUSY errors gracefullyRogier2015-12-30
| | | | | | This allows other applications (e.g. minetestmapper) to interrogate the database while minetest is running, without causing an almost certain minetest crash.
* Use warningstream for log messages with WARNINGShadowNinja2015-10-14
| | | | Remove DTIME macro and its uses, too
* Fix missing SQLite3 statement pointer initializationShadowNinja2015-04-07
| | | | | This fixes a segfault when the database is shut down before it finishes connecting and setting up.
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
| | | | | | | | | | | | Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
* For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins2015-03-07
| | | | NDEBUG is defined), replace those usages with persistent alternatives
* Clean up database API and save the local map on an intervalShadowNinja2015-03-06
|
* Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ↵Loic Blot2015-02-17
| | | | | | ServerMap::listAllLoadedBlocks and their database backends. This adds a speedup on database migration and /clearobjects command
* Fix uninitialized variable m_database_delete in Database_SQLite3Kahrl2015-01-28
| | | | This fixes issue #2219
* Add ability to delete MapBlocks from mapkwolekr2015-01-15
| | | | Also add a Lua API and chatcommand for this
* Split settings into seperate source and header filesShadowNinja2014-09-21
| | | | This also cleans up settings a bit
* Add sqlite3 backend hack for androidsapier2014-08-16
|
* Move MapBlock (de)serializing code out of Database classsfan52014-07-12
|
* Don't unload blocks if save failedkwolekr2014-07-07
| | | | Improve error handling in saveBlock()
* Switch android to leveldb as sqlite3 is broken and fails to save any ↵sapier2014-07-06
| | | | mapblock there
* Remove confusing code block from SQLite3 databaseShadowNinja2014-06-23
|
* Fix sqlite3 map shutdown fails due to missing to finalize list statementsapier2014-06-22
| | | | | Add error output on fail to shutdown sqlite3 map db Implement shutdown of sqlite3 rollback db
* Don't continue trying to deserialize blank block datakwolekr2013-11-24
|
* Do the same for LevelDB interfacekwolekr2013-11-17
|
* Handle blank blocks in databasekwolekr2013-11-17
| | | | Fix screwed-up indentation
* Add configurable PRAGMA synchronous =proller2013-09-17
|
* Add license headers and remove useless includesKahrl2013-09-10
|
* Use STL containers instead of irr::core::listSfan52013-09-09
|
* Make it compileSfan52013-09-09
|
* Add dummy and LevelDB database backendsIlya Zhuravlev2013-09-09