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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
f09e1dfc
Commit
f09e1dfc
authored
Feb 24, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add words about copies of objects and about DB.open()
revise words about registering with transactions.
parent
61827b92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
src/ZODB/Connection.py
src/ZODB/Connection.py
+13
-5
No files found.
src/ZODB/Connection.py
View file @
f09e1dfc
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.12
1 2004/02/24 21:38:38
jeremy Exp $"""
$Id: Connection.py,v 1.12
2 2004/02/24 22:07:46
jeremy Exp $"""
import
logging
import
sys
...
...
@@ -55,10 +55,10 @@ class Connection(ExportImport, object):
The Connection object serves as a data manager. The root() method
on a Connection returns the root object for the database. This
object and all objects reachable from it are associated with the
Connection that loaded them. When
the objects are modified, the
Connection is registered with the current transaction
.
Connection that loaded them. When
a transaction commits, it uses
the Connection to store modified objects
.
The typical use of ZODB is for each thread
should
have its own
The typical use of ZODB is for each thread
to
have its own
Connection and that no thread should have more than one Connection
to the same database. A thread is associated with a Connection by
loading objects from that Connection. Objects loaded by one
...
...
@@ -68,6 +68,14 @@ class Connection(ExportImport, object):
created. By default, a Connection is not associated with a
version; it uses non-version data.
Each Connection provides an isolated, consistent view of the
database, by managing independent copies of objects in the
database. At transaction boundaries, these copies are updated to
reflect the current state of the database.
You should not instantiate this class directly; instead call the
open() method of a DB instance.
Synchronization
A Connection instance is not thread-safe. It is designed to
...
...
@@ -79,7 +87,7 @@ class Connection(ExportImport, object):
XXX We should document an intended API for using a Connection via
multiple threads.
$Id: Connection.py,v 1.12
1 2004/02/24 21:38:38
jeremy Exp $
$Id: Connection.py,v 1.12
2 2004/02/24 22:07:46
jeremy Exp $
"""
_tmp
=
None
...
...
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