feat(Core/Database): port TrinityCore database API (#5611)

This commit is contained in:
Kargatum 2021-06-22 11:21:07 +07:00 committed by GitHub
parent 2a2e54d8c5
commit 9ac6fddcae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
155 changed files with 5818 additions and 4321 deletions

View file

@ -23,6 +23,8 @@
#include "Log.h"
#include "RealmAcceptor.h"
#include "RealmList.h"
#include "DatabaseLoader.h"
#include "MySQLThreading.h"
#include "SecretMgr.h"
#include "SharedDefines.h"
#include "SignalHandler.h"
@ -211,7 +213,7 @@ bool StartDB()
// Load databases
// NOTE: While authserver is singlethreaded you should keep synch_threads == 1.
// Increasing it is just silly since only 1 will be used ever.
DatabaseLoader loader;
DatabaseLoader loader("server.authserver");
loader
.AddDatabase(LoginDatabase, "Login");