SQLite enables one to create "
Savepoints" which are like GOTO statements for rollback.
An interesting feature although from reading the documentation I think that is just for use with nested transactions.
The concept of a blockchain re-org though is not the same thing as you need to "rollback" transactions that have already been committed (something rather alien to how RDBMS transactions operate).