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