Show More
@@ -118,6 +118,7 b' class transaction(object):' | |||||
118 |
|
118 | |||
119 | @active |
|
119 | @active | |
120 | def close(self): |
|
120 | def close(self): | |
|
121 | '''commit the transaction''' | |||
121 | self.count -= 1 |
|
122 | self.count -= 1 | |
122 | if self.count != 0: |
|
123 | if self.count != 0: | |
123 | return |
|
124 | return | |
@@ -131,6 +132,9 b' class transaction(object):' | |||||
131 |
|
132 | |||
132 | @active |
|
133 | @active | |
133 | def abort(self): |
|
134 | def abort(self): | |
|
135 | '''abort the transaction (generally called on error, or when the | |||
|
136 | transaction is not explicitly committed before going out of | |||
|
137 | scope)''' | |||
134 | self._abort() |
|
138 | self._abort() | |
135 |
|
139 | |||
136 | def _abort(self): |
|
140 | def _abort(self): |
General Comments 0
You need to be logged in to leave comments.
Login now