OpenFusion/src/db
dongresource be6a4c0a5d Enforce minimum supported libsqlite version
The server now checks the libsqlite both at compile time and on server
startup. The version the executable was built with and the one it's
running with may be different, so long as they're both at or above the
minimum supported version. One or both version numbers are printed on
startup, depending on if they're identical or not.

The compile-time ("Built with") version depends on the sqlite3.h header
used during compilation, while the runtime ("Using") version depends on
either:

* The sqlite3.c version used during compilation, if statically linked.
  (Which may be different from the header version and still compile and run
  fine.)
* The version of the libsqlite3.so or sqlite3.dll that the server
  loaded, if dynamically linked. Version mismatches here are normal,
  especially on Unix systems with their own system libraries.

The current minimum version is 3.33.0, from 2020-08-14, as that's the
one that introduced the UPDATE-FROM syntax used during login by
Database::updateSelectedByPlayerId().

Also rearranged the prints and initialization calls in main() slightly.
2023-03-19 01:41:07 +01:00
..
Database.hpp Enforce minimum supported libsqlite version 2023-03-19 01:41:07 +01:00
email.cpp Sync player data to DB when trading and sending emails 2022-12-05 22:29:23 +01:00
init.cpp Enforce minimum supported libsqlite version 2023-03-19 01:41:07 +01:00
internal.hpp Enforce minimum supported libsqlite version 2023-03-19 01:41:07 +01:00
login.cpp On login, load Player from DB in shard thread, not in login thread 2022-12-06 01:07:21 +01:00
player.cpp Sync player data to DB when trading and sending emails 2022-12-05 22:29:23 +01:00
shard.cpp [refactor] Split Database.cpp into db subdirectory 2021-03-16 02:13:24 +01:00