SQLQueryCallback Typedef

Callback for receiving asynchronous database query results.

typedef SQLQueryCallback = function void(Database db, DBResultSet results, const char[] error, any data)

Tags

db

Cloned handle to the database connection.

results

Result object, or null on failure.

error

Error string if there was an error. The error could be empty even if an error condition exists, so it is important to check the actual results value instead.

data

Data passed in via the original threaded invocation.