SQL_TConnect Function

Connects to a database via a thread. This can be used instead of SQL_Connect() if you wish for non-blocking functionality.

It is not necessary to use this to use threaded queries. However, if you don't (or you mix threaded/non-threaded queries), you should see SQL_LockDatabase().

void SQL_TConnect(SQLTCallback callback, const char[] name, any data)

Parameters

SQLTCallback callback

Callback; new Handle will be in hndl, owner is the driver. If no driver was found, the owner is INVALID_HANDLE.

const char[] name

Database name.

any data

Extra data value to pass to the callback.