aboutsummaryrefslogtreecommitdiff
path: root/src/database-sqlite3.cpp
AgeCommit message (Collapse)Author
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-08-17Modernize src/c* src/d* and src/e* files (#6263)Loïc Blot
* 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)
2017-06-25Inventory: Fix wrong stack size behaviour and item loss (#6039)SmallJoker
Also fix itemFits and remove constness-nonsense
2017-06-16C++11 patchset 9: move hardcoded init parameters to class definitions (part ↵Loïc Blot
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
2017-04-28Clean up getTime helpersShadowNinja
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.
2017-04-23Player data to Database (#5475)Loïc Blot
* 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
2016-07-08Fix -Wterminate warning on GCC 6est31
Fixes #4137
2016-05-17Implement DatabaseException for databasesnerzhul
2016-05-17DB::loadBlock copy removal & DB backend cleanupLoic Blot
* 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
2015-12-30Include custom error message in all SQLite3 exceptions.Rogier
And replace manual tests for error with SQLOK() where possible.
2015-12-30Handle SQLITE_BUSY errors gracefullyRogier
This allows other applications (e.g. minetestmapper) to interrogate the database while minetest is running, without causing an almost certain minetest crash.
2015-10-14Use warningstream for log messages with WARNINGShadowNinja
Remove DTIME macro and its uses, too
2015-04-07Fix missing SQLite3 statement pointer initializationShadowNinja
This fixes a segfault when the database is shut down before it finishes connecting and setting up.
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
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
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-06Clean up database API and save the local map on an intervalShadowNinja
2015-02-17Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ↵Loic Blot
ServerMap::listAllLoadedBlocks and their database backends. This adds a speedup on database migration and /clearobjects command
2015-01-28Fix uninitialized variable m_database_delete in Database_SQLite3Kahrl
This fixes issue #2219
2015-01-15Add ability to delete MapBlocks from mapkwolekr
Also add a Lua API and chatcommand for this
2014-09-21Split settings into seperate source and header filesShadowNinja
This also cleans up settings a bit
2014-08-16Add sqlite3 backend hack for androidsapier
2014-07-12Move MapBlock (de)serializing code out of Database classsfan5
2014-07-07Don't unload blocks if save failedkwolekr
Improve error handling in saveBlock()
2014-07-06Switch android to leveldb as sqlite3 is broken and fails to save any ↵sapier
mapblock there
2014-06-23Remove confusing code block from SQLite3 databaseShadowNinja
2014-06-22Fix sqlite3 map shutdown fails due to missing to finalize list statementsapier
Add error output on fail to shutdown sqlite3 map db Implement shutdown of sqlite3 rollback db
2013-11-24Don't continue trying to deserialize blank block datakwolekr
2013-11-17Do the same for LevelDB interfacekwolekr
2013-11-17Handle blank blocks in databasekwolekr
Fix screwed-up indentation
2013-09-17Add configurable PRAGMA synchronous =proller
2013-09-10Add license headers and remove useless includesKahrl
2013-09-09Use STL containers instead of irr::core::listSfan5
2013-09-09Make it compileSfan5
2013-09-09Add dummy and LevelDB database backendsIlya Zhuravlev