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
fa14f638
Commit
fa14f638
authored
Oct 25, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor comment fiddling.
parent
bef83a29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
branches/tim-simpler_connection/src/ZODB/DB.py
branches/tim-simpler_connection/src/ZODB/DB.py
+8
-8
No files found.
branches/tim-simpler_connection/src/ZODB/DB.py
View file @
fa14f638
...
...
@@ -40,9 +40,9 @@ class DB(object):
The DB instance manages a pool of connections. If a connection is
closed, it is returned to the pool and its object cache is
preserved. A subsequent call to open() will reuse the connection.
There is
a limit to the pool size; if all its connections are in
use, calls to open() will block until one of the open connections
is clos
ed.
There is
no hard limit on the pool size. If more than `pool_size`
connections are opened, a warning is logged, and if more than twice
that many, a critical problem is logg
ed.
The class variable 'klass' is used by open() to create database
connections. It is set to Connection, but a subclass could override
...
...
@@ -402,7 +402,7 @@ class DB(object):
waitflag
=
1
,
mvcc
=
True
,
txn_mgr
=
None
,
synch
=
True
):
"""Return a database Connection for use by application code.
The optional
version
argument can be used to specify that a
The optional
`version`
argument can be used to specify that a
version connection is desired.
The optional transaction argument can be provided to cause the
...
...
@@ -411,21 +411,21 @@ class DB(object):
reused, if possible.
Note that the connection pool is managed as a stack, to
increa
t
e the likelihood that the connection's stack will
increa
s
e the likelihood that the connection's stack will
include useful objects.
:Parameters:
- `version`: the "version" that all changes will be made
in, defaults to no version.
- `transaction`: XXX
- `temporary`: XXX
- `force`: XXX
- `waitflag`: XXX
- `mvcc`: boolean indicating whether MVCC is enabled
- `txn_mgr`: transaction manager to use. None means
used the default transaction manager.
- `synch`: boolean indicating whether Connection should
register for afterCompletion() calls.
- `temporary`: XXX
- `force`: XXX
- `waitflag`: XXX
"""
self
.
_a
()
...
...
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