From 64f61aaaf99af2b8e8623fe9ac17f1b44a20bc70 Mon Sep 17 00:00:00 2001 From: Rohan Allison Date: Mon, 15 Jun 2015 14:37:58 -0500 Subject: [PATCH] Update README for revertable transactions --- README.md | 3 +++ 1 file changed, 3 insertions(+) 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()