DarkflameServer/dCommon
David Markowitz a60865cd19
feat: allow SQLite database backend (#1663)
* simplify leaderboard code, fully abstract database

* update exception catching

* update exception catching and sql references, remove ugc from gamemessages

fix deleting model

remove unrelated changes

Update GameMessages.cpp

* remove ugc from gamemessages

* Update GameMessages.cpp

* Update Leaderboard.cpp

* bug fixes

* fix racing leaderboard

* remove extra stuff

* update

* add sqlite

* use a default for optimizations

* update sqlite

* Fix limits on update and delete

* fix bugs

* use definition to switch between databases

* add switch for different backends

* fix include guard and includes

* always build both

* add mysql if block

* Update Database.cpp

* add new options and add check to prevent overriding mysql

* correct config names

* Update README.md

* Update README.md

* merge to 1 sql file for sqlite database

* move to sqlite folder

* add back mysql migrations

* Update README.md

* add migration to correct the folder name or mysql

* yes aron

* updates

* Update CMakeLists.txt

* dont use paths at all, add where check to only update if folder name still exist

check also doesnt check for slashes and assumes one will be there since it will be.

* default dont auto create account

for releases we can change this flag

* default 0

* add times played query

* fix leaderboard not incrementing on a not better score

* add env vars with defaults for docker

* use an "enum"

* default to mariadb

* Update .env.example
2024-12-17 16:07:07 -08:00
..
dClient refactor: Change TryParse implementation (#1442) 2024-02-10 05:05:25 -06:00
dEnums fix: Remove database requirements for Property Entrance Component and greatly simplify logic (#1650) 2024-11-23 15:56:31 -06:00
Amf3.h refactor: Rewrite AMF and property behavior logic to use smart pointers, references, and string_views over raw pointers and std::string& (#1452) 2024-11-18 20:45:24 -06:00
AMFDeserialize.cpp refactor: Rewrite AMF and property behavior logic to use smart pointers, references, and string_views over raw pointers and std::string& (#1452) 2024-11-18 20:45:24 -06:00
AMFDeserialize.h refactor: Rewrite AMF and property behavior logic to use smart pointers, references, and string_views over raw pointers and std::string& (#1452) 2024-11-18 20:45:24 -06:00
AmfSerialize.cpp Convert AMFSerialize to use bitstream references (#1466) 2024-02-26 23:11:56 -06:00
AmfSerialize.h fix: make include paths consistent (#1390) 2024-01-05 06:33:52 -06:00
BinaryIO.cpp chore: Speed up and cleanup level and zone loading; Add safer asset buffer reading (#1314) 2023-12-23 11:24:16 -06:00
BinaryIO.h chore: Speed up and cleanup level and zone loading; Add safer asset buffer reading (#1314) 2023-12-23 11:24:16 -06:00
BinaryPathFinder.cpp Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
BinaryPathFinder.h Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
Brick.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
BrickByBrickFix.cpp update exception catching (#1661) 2024-12-04 03:30:14 -06:00
BrickByBrickFix.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
CMakeLists.txt feat: allow SQLite database backend (#1663) 2024-12-17 16:07:07 -08:00
dConfig.cpp Fix g++ 14 (#1610) 2024-06-06 04:00:44 -05:00
dConfig.h feat: add DLU_CONFIG_DIR env var (#1370) 2023-12-30 07:07:49 -06:00
Demangler.cpp Diagnostics: Fix demangling (#1215) 2023-10-09 15:31:43 -05:00
Demangler.h Diagnostics: Fix demangling (#1215) 2023-10-09 15:31:43 -05:00
Diagnostics.cpp fix: use after free and uninitialized memory (#1603) 2024-05-30 23:53:03 -05:00
Diagnostics.h format codebase 2022-07-28 08:39:57 -05:00
DluAssert.h Add Animation Table logic 2023-03-26 05:18:45 -07:00
FdbToSqlite.cpp chore: Speed up and cleanup level and zone loading; Add safer asset buffer reading (#1314) 2023-12-23 11:24:16 -06:00
FdbToSqlite.h chore: Speed up and cleanup level and zone loading; Add safer asset buffer reading (#1314) 2023-12-23 11:24:16 -06:00
Game.cpp fix: signal handling (#1375) 2024-01-01 21:50:00 -06:00
Game.h fix: signal handling (#1375) 2024-01-01 21:50:00 -06:00
GeneralUtils.cpp chore: Nitpicking-utils (#1549) 2024-04-14 23:14:54 -07:00
GeneralUtils.h refactor: Rewrite AMF and property behavior logic to use smart pointers, references, and string_views over raw pointers and std::string& (#1452) 2024-11-18 20:45:24 -06:00
Implementation.h press the enter key once (#1648) 2024-11-17 19:03:09 -06:00
LDFFormat.cpp refactor: Change TryParse implementation (#1442) 2024-02-10 05:05:25 -06:00
LDFFormat.h Add more modular saving of config data for items (#1591) 2024-05-22 17:06:52 -07:00
Logger.cpp crash and log fix (#1382) 2024-01-03 06:52:11 +00:00
Logger.h feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
Metrics.cpp chore: Eradicate C-style casts and further clean up some code (#1361) 2023-12-27 22:18:20 -06:00
Metrics.hpp Add Animation Table logic 2023-03-26 05:18:45 -07:00
NiPoint3.cpp refactor: allow usage of NiPoint3 and NiQuaternion in constexpr context (#1414) 2024-01-29 01:53:12 -06:00
NiPoint3.h refactor: allow usage of NiPoint3 and NiQuaternion in constexpr context (#1414) 2024-01-29 01:53:12 -06:00
NiPoint3.inl refactor: allow usage of NiPoint3 and NiQuaternion in constexpr context (#1414) 2024-01-29 01:53:12 -06:00
NiQuaternion.cpp refactor: allow usage of NiPoint3 and NiQuaternion in constexpr context (#1414) 2024-01-29 01:53:12 -06:00
NiQuaternion.h refactor: allow usage of NiPoint3 and NiQuaternion in constexpr context (#1414) 2024-01-29 01:53:12 -06:00
NiQuaternion.inl refactor: allow usage of NiPoint3 and NiQuaternion in constexpr context (#1414) 2024-01-29 01:53:12 -06:00
Observable.h Proposal for observers and deferred implementations (#1599) 2024-11-17 18:46:08 -06:00
PositionUpdate.h fix: FrameStats serialization (#1481) 2024-02-27 23:40:26 -06:00
Singleton.h CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
ZCompression.cpp fix: make include paths consistent (#1390) 2024-01-05 06:33:52 -06:00
ZCompression.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00