SQL_TQuery Function

Executes a simple query via a thread. The query Handle is passed through the callback.

The database Handle returned through the callback is always a new Handle, and if necessary, SQL_IsSameConnection() should be used to test against other connections.

The query Handle returned through the callback is temporary and destroyed at the end of the callback. If you need to hold onto it, use CloneHandle().

void SQL_TQuery(Handle database, SQLTCallback callback, const char[] query, any data, DBPriority prio)


Handle database

A database Handle.

SQLTCallback callback

Callback; database is in "owner" and the query Handle is passed in "hndl".

const char[] query

Query string.

any data

Extra data value to pass to the callback.

DBPriority prio

Priority queue to use.


Invalid database Handle.