SQLConnectCallback Typedef

Callback for receiving asynchronous database connections.

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

Tags

db

Handle to the database connection.

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 Handle value instead.

data

Data passed in via the original threaded invocation.