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().
native void SQL_TQuery(Handle database, SQLTCallback callback, const char[] query, any data = 0, DBPriority prio = DBPrio_Normal)