[Quest API] Add Native Database Querying Interface (#4531)

* Add database quest API

API functions are named to be similar to LuaSQL and perl DBI

New connections are made for Database objects. These can either use
credentials from the server eqemu_config or manual connections.

* Add option to use zone db connections
This commit is contained in:
hg authored and GitHub committed 2024-11-12 20:01:18 -06:00
1 parent c1df3fbcb0
commit bcedfe7032
10 files changed
+670 -1

No files matched your search

+3 -1
View File
@@ -42,6 +42,7 @@
#include "lua_spawn.h"
#include "lua_spell.h"
#include "lua_stat_bonuses.h"
#include "lua_database.h"
const char *LuaEvents[_LargestEventID] = {
"event_say",
@@ -1318,7 +1319,8 @@ void LuaParser::MapFunctions(lua_State *L) {
lua_register_expedition(),
lua_register_expedition_lock_messages(),
lua_register_buff(),
lua_register_exp_source()
lua_register_exp_source(),
lua_register_database()
)];
} catch(std::exception &ex) {