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
Kirill Smelkov
ZODB
Commits
06f4d393
Commit
06f4d393
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
a7848ff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
trunk/src/ZODB/Connection.py
trunk/src/ZODB/Connection.py
+13
-5
No files found.
trunk/src/ZODB/Connection.py
View file @
06f4d393
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Database connection support
"""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
logging
import
sys
import
sys
...
@@ -55,10 +55,10 @@ class Connection(ExportImport, object):
...
@@ -55,10 +55,10 @@ class Connection(ExportImport, object):
The Connection object serves as a data manager. The root() method
The Connection object serves as a data manager. The root() method
on a Connection returns the root object for the database. This
on a Connection returns the root object for the database. This
object and all objects reachable from it are associated with the
object and all objects reachable from it are associated with the
Connection that loaded them. When
the objects are modified, the
Connection that loaded them. When
a transaction commits, it uses
Connection is registered with the current transaction
.
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
Connection and that no thread should have more than one Connection
to the same database. A thread is associated with a Connection by
to the same database. A thread is associated with a Connection by
loading objects from that Connection. Objects loaded by one
loading objects from that Connection. Objects loaded by one
...
@@ -68,6 +68,14 @@ class Connection(ExportImport, object):
...
@@ -68,6 +68,14 @@ class Connection(ExportImport, object):
created. By default, a Connection is not associated with a
created. By default, a Connection is not associated with a
version; it uses non-version data.
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
Synchronization
A Connection instance is not thread-safe. It is designed to
A Connection instance is not thread-safe. It is designed to
...
@@ -79,7 +87,7 @@ class Connection(ExportImport, object):
...
@@ -79,7 +87,7 @@ class Connection(ExportImport, object):
XXX We should document an intended API for using a Connection via
XXX We should document an intended API for using a Connection via
multiple threads.
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
_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