This function causes all currently running statements to abort
at their earliest convenience. It is safe to call this from a
different thread. Interrupted functions will return SQLITE_INTERRUPT
. If the
interrupted function is modifying the database file and is
inside an explicit transaction, the transaction will be rolled
back. The interrupt state will continue until the active
statement count reaches zero.
This function should not be called if the database connection may be closed. A crash is likely if the database connection is closed while an interrupt is still outstanding.