SQLTxnFailure Typedef

Callback for a failed transaction.

typedef SQLTxnFailure = function void(Database db, any data, int numQueries, const char[] error, int failIndex, any[] queryData)

Tags

db

Database handle.

data

Data value passed to SQL_ExecuteTransaction().

numQueries

Number of queries executed in the transaction.

error

Error message.

failIndex

Index of the query that failed, or -1 if something else.

queryData

An array of each data value passed to SQL_AddQuery().