views:

36

answers:

1

I working with python sqlite3 , I found we have commit and rollback option. Does sqlite3 allows something like check point ?

For example: Initial state is empty. ... insert something ... commit .... ..... insert something commit. update something Found some problem.Now I want to roll back to initial state. Something like multiple undo?

+2  A: 

No, I don't know of any SQL database engine supporting "multiple undo" -- if one exists at all, Sqlite is definitely not it! For nested transactions (a less general concept), consider (per Sqlite's docs!) the SAVEPOINT feature -- it may be sufficient to do most of what you require.

Alex Martelli
thanks savepoint is more than enough for me.
lakshmipathi