Skip to content

MySQL_SendQuery

imshooter edited this page Oct 24, 2026 · 1 revision

Send a query built in pieces, and forget it, also when it is refused.

native bool:MySQL_SendQuery(Query:query, const callback[] = "", context = 0, bool:parallel = false);

Parameters

Parameter Description Default
Query:query Query to send.
const callback[] Public to call when it is done, or none. ""
context Value the public receives. 0
bool:parallel Whether any connection of the pool may run it. false

Returns

  • true when it was sent.
  • false when the query does not exist, or a limit of the connection refused it, and the public is not called.

Remarks

The query is forgotten once sent, and also when a limit of the connection refuses it, so it is never sent twice by mistake. The public behaves as the one of MySQL_Query.

Related

  • MySQL_CreateQuery: Start a query to build a piece at a time.
  • MySQL_RunQuery: Run a query built in pieces and wait for it, as MySQL_Run does, and forget it.
  • MySQL_Query: Send a query, and call a public with context when it is done.

Clone this wiki locally