mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
CDClientSnapshot converts a copy of the client's fdb into its own CDServer-<hash>.sqlite with the cdserver migrations applied, on its own connection. CDClientDatabase::Reconnect opens the new file before letting go of the old one; CDClientManager::Reload empties every table (old entries kept alive so references from spawned objects stay valid), retires the old fdb view and loads again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
517 B
CMake
15 lines
517 B
CMake
add_subdirectory(CDClientDatabase)
|
|
add_subdirectory(GameDatabase)
|
|
|
|
add_library(dDatabase STATIC "MigrationRunner.cpp" "ModelNormalizeMigration.cpp" "ModularBuildIdMigration.cpp" "ConfigSync.cpp" "CDClientSnapshot.cpp")
|
|
|
|
add_custom_target(conncpp_dylib
|
|
${CMAKE_COMMAND} -E copy $<TARGET_FILE:MariaDB::ConnCpp> ${PROJECT_BINARY_DIR})
|
|
|
|
add_dependencies(dDatabase conncpp_dylib)
|
|
|
|
target_include_directories(dDatabase PUBLIC ".")
|
|
target_link_libraries(dDatabase
|
|
PUBLIC dDatabaseCDClient dDatabaseGame
|
|
PRIVATE glm::glm)
|