Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(FormatQuery): Added a query formatting function #214

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

iThorgrim
Copy link

@iThorgrim iThorgrim commented Jan 12, 2025

This allows you to use DBQuery and DBExecute by passing several arguments that will be formatted in the SQL query. Note that this is optional.

Queries that are formatted the “old-fashioned way” will still work.

Example :

CharDBExecute("DELETE FROM character WHERE guid = ? and name = ?", 123, "iThorgrim")
local results = CharDBQuery("SELECT * FROM characters WHERE name = ?", "iThorgrim")

This PR require : #211

iThorgrim and others added 8 commits January 9, 2025 17:05
### Eluna Module Updates: Lua Version and Static Linking Support

Recent updates to the **Eluna** module in **AzerothCore** introduce new configuration options to manage Lua versions and static linking:

- **`-DLUA_VERSION=luajit/lua52/lua53/lua54`**: Select the Lua version for the module, supporting LuaJIT, Lua 5.2, 5.3, or 5.4.
- **`-DLUA_STATIC=on/off`**: Configure whether Lua should be linked statically or dynamically.

These options allow flexible Lua integration, building on Eluna's existing capabilities to handle different Lua versions. The changes also improve compatibility and performance by enabling static linking where needed.

#### Integration with Eluna

This functionality extends Eluna's existing support for Lua compatibility, mainly in **ElunaCompat.cpp**, which handles Lua version-specific interactions. These updates enhance Eluna’s adaptability for various Lua configurations in **AzerothCore**.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant