Update README for revertable transactions

This commit is contained in:
Rohan Allison 2015-06-15 14:37:58 -05:00
parent 3c28ceea66
commit 64f61aaaf9
1 changed files with 3 additions and 0 deletions

View File

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