Callback to use with ksqlite.capi.sqlite3_trace_v2.
Details on parameters and result can be found here.