Database.Query Method

Executes a query via a thread. The result handle is passed through the callback.

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

The result handle returned through the callback is temporary and destroyed at the end of the callback.

void Query(SQLQueryCallback callback, const char[] query, any data, DBPriority prio)

Parameters

SQLQueryCallback callback

Callback.

const char[] query

Query string.

any data

Extra data value to pass to the callback.

DBPriority prio

Priority queue to use.