We've long needed a way to see the most recent SQLite result code SQLite in the context
of say a
catch block (most other times you can assume SQLITE_OK was the last
result code otherwise control flow would transfer elsewhere. Sometimes SQLITE_ROW
or SQLITE_DONE might be the current result code.
Soon we'll provide a sample header that declares the most common error codes in an enum but for now you could do something like this: