Skip to content

mysql_pquery

imshooter edited this page Dec 1, 2026 · 2 revisions

Send a query that any connection of the pool runs, out of order with the rest, and call a public when it is done.

Without a pool it runs in order, as mysql_tquery does.

native bool:mysql_pquery(
    MySQL:handle,
    const query[],
    const callback[] = "",
    const format[] = "",
    {Float, _}:...
);

With open.mp names, from the same include:

native bool:MySQL_ParallelQuery(
    MySQL:handle,
    const query[],
    const callback[] = "",
    const format[] = "",
    {Float, _}:...
);

Parameters

Parameter Description
MySQL:handle Handle to send it through.
const query[] The query.
const callback[] = "" Public to call, or none.
const format[] = "" Letters of the values the public receives.
{Float, _}:... The values.

Returns

  • true when it was sent.
  • false when the handle does not exist, the callback is not a public of the script, the format does not match the values, or a limit of the handle refused it.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally