diff --git a/README.md b/README.md index 5e790a1c..f2b9978b 100644 --- a/README.md +++ b/README.md @@ -861,6 +861,9 @@ All individual save and delete operations are run in a transaction by default. // begin tx := db.Begin() +// do revertable work in a transaction (use 'tx' in place of 'db') +tx.Exec + // rollback tx.Rollback()