[DiscordArchive] how it is right now it just goes through the table and returns the tickets with the players guid rig
[DiscordArchive] how it is right now it just goes through the table and returns the tickets with the players guid rig
Archived author: Nix • Posted: 2023-01-12T01:15:15.687000+00:00
Original source
You can update it synchronously and asynchronously
Archived author: Nix • Posted: 2023-01-12T01:15:53.902000+00:00
Original source
synchronously means that your code waits for the update to happen before it continues executing. This is typically only used in places where you absolutely need to wait, because the next part of the code depends on the result of the update as an example
Archived author: Nix • Posted: 2023-01-12T01:16:16.093000+00:00
Original source
asynchronously means that your code immediately continues running the next code as soon as the command to update the database has been sent (but not yet completed)
Archived author: Nix • Posted: 2023-01-12T01:16:31.478000+00:00
Original source
Since you'll be storing your own local table with data matching the database, you don't need to wait for it to tell you what happened
Archived author: Nix • Posted: 2023-01-12T01:16:46.874000+00:00
Original source
Therefore in your example updating it asynchronously would be the right choice
Archived author: Foe • Posted: 2023-01-12T01:18:13.374000+00:00
Original source
WorldDBQuery = returns data, so you have to wait for it
WorldDBExecute = does not return data, so you can fire and forget and the script won't halt
Archived author: Nix • Posted: 2023-01-12T01:18:43.366000+00:00
Original source
https://elunaluaengine.github.io/
[Embed: Eluna API]
API documentation for the Eluna engine.
https://elunaluaengine.github.io/
Archived author: Nix • Posted: 2023-01-12T01:18:54.835000+00:00
Original source
Remember you can always go here to see the available functions
Archived author: Foe • Posted: 2023-01-12T01:19:01.233000+00:00
Original source
https://github.com/Foereaper/PublicScrip...BCache.lua
[Embed: PublicScripts/DBCache.lua at master · Foereaper/PublicScripts]
A repository for storing public script releases. Contribute to Foereaper/PublicScripts development by creating an account on GitHub.
https://github.com/Foereaper/PublicScrip...BCache.lua
Archived author: Foe • Posted: 2023-01-12T01:19:24.168000+00:00
Original source
Here's an old caching example script for loading data into a table on startup/reload