TeiaLabs / redb

1 stars 0 forks source link

Create rollback function #60

Open jojo0severo opened 1 year ago

jojo0severo commented 1 year ago

Transaction object does not currently support rollback (undo any action inside the transaction context).

CollectionWrapper class should implement a function that will be called by the end user to execute the rollback of:

Transaction should have a flag that defaults to True indicating whether or not automatically rollback if any exception is raised. Note that if any exception is raised, the transaction method exit will receive a type representing the exception raised type while inside the context.