Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] > How to get the result of a async prepared world db mysql query from a custom cpp script?

[DiscordArchive] > How to get the result of a async prepared world db mysql query from a custom cpp script?

[DiscordArchive] > How to get the result of a async prepared world db mysql query from a custom cpp script?

rektbyfaith
Administrator
0
10-05-2020, 05:11 PM
#1
Archived author: M'Dic • Posted: 2020-10-05T17:11:37.650000+00:00
Original source

> How to get the result of a async prepared world db mysql query from a custom cpp script?
> WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_MYTHIC_DUNGEON);
> WorldDatabase.AsyncQuery(stmt);
>
> I already added the query to WorldDatabase, but im not sure how to handle/work with the result
<@!226218997912305664> Mythic dungeon? what source code core are u working with?
rektbyfaith
10-05-2020, 05:11 PM #1

Archived author: M'Dic • Posted: 2020-10-05T17:11:37.650000+00:00
Original source

> How to get the result of a async prepared world db mysql query from a custom cpp script?
> WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_MYTHIC_DUNGEON);
> WorldDatabase.AsyncQuery(stmt);
>
> I already added the query to WorldDatabase, but im not sure how to handle/work with the result
<@!226218997912305664> Mythic dungeon? what source code core are u working with?

rektbyfaith
Administrator
0
10-05-2020, 05:41 PM
#2
Archived author: GvR Mr Mister • Posted: 2020-10-05T17:41:57.322000+00:00
Original source

my own custom fork. im a cpp noob and try to learn by doing <@!209317995057643521>
rektbyfaith
10-05-2020, 05:41 PM #2

Archived author: GvR Mr Mister • Posted: 2020-10-05T17:41:57.322000+00:00
Original source

my own custom fork. im a cpp noob and try to learn by doing <@!209317995057643521>

rektbyfaith
Administrator
0
10-05-2020, 05:43 PM
#3
Archived author: GvR Mr Mister • Posted: 2020-10-05T17:43:10.730000+00:00
Original source

i know callback in js, but have no clue how to do it here
rektbyfaith
10-05-2020, 05:43 PM #3

Archived author: GvR Mr Mister • Posted: 2020-10-05T17:43:10.730000+00:00
Original source

i know callback in js, but have no clue how to do it here

rektbyfaith
Administrator
0
10-05-2020, 05:44 PM
#4
Archived author: GvR Mr Mister • Posted: 2020-10-05T17:44:21.078000+00:00
Original source

i would like to know how to do a own sql query in a custom script
rektbyfaith
10-05-2020, 05:44 PM #4

Archived author: GvR Mr Mister • Posted: 2020-10-05T17:44:21.078000+00:00
Original source

i would like to know how to do a own sql query in a custom script

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)