Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
5bbd987d
Commit
5bbd987d
authored
Mar 16, 2020
by
Éloi Rivard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed subtransactions documentation
parent
ecae906c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
56 deletions
+1
-56
doc/index.rst
doc/index.rst
+0
-1
doc/requirements.txt
doc/requirements.txt
+1
-0
doc/subtransactions.rst
doc/subtransactions.rst
+0
-55
No files found.
doc/index.rst
View file @
5bbd987d
...
@@ -37,7 +37,6 @@ Learning more
...
@@ -37,7 +37,6 @@ Learning more
event
event
historical_connections
historical_connections
persistentclass
persistentclass
subtransactions
utils
utils
developers
developers
changelog
changelog
...
...
doc/requirements.txt
View file @
5bbd987d
Sphinx
Sphinx
# pygments 2.6 stops the support for python2
pygments<2.6
pygments<2.6
docutils
docutils
ZODB
ZODB
...
...
doc/subtransactions.rst
deleted
100644 → 0
View file @
ecae906c
=========================
Subtransactions in ZODB 3
=========================
.. caution::
This document hasn't been reviewed since 2005
and is likely out of date.
ZODB 3 provides limited support for subtransactions. Subtransactions
are nested to *one* level. There are top-level transactions and
subtransactions. When a transaction is committed, a flag is passed
indicating whether it is a subtransaction or a top-level transaction.
Consider the following exampler commit calls:
- ``commit()``
A regular top-level transaction is committed.
- ``commit(1)``
A subtransaction is committed. There is now one subtransaction of
the current top-level transaction.
- ``commit(1)``
A subtransaction is committed. There are now two subtransactions of
the current top-level transaction.
- ``abort(1)``
A subtransaction is aborted. There are still two subtransactions of
the current top-level transaction; work done since the last
``commit(1)`` call is discarded.
- ``commit()``
We now commit a top-level transaction. The work done in the previous
two subtransactions *plus* work done since the last ``abort(1)`` call
is saved.
- ``commit(1)``
A subtransaction is committed. There is now one subtransaction of
the current top-level transaction.
- ``commit(1)``
A subtransaction is committed. There are now two subtransactions of
the current top-level transaction.
- ``abort()``
We now abort a top-level transaction. We discard the work done in
the previous two subtransactions *plus* work done since the last
``commit(1)`` call.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment