Skip to content

Commit be81a86

Browse files
committed
Prepared version 1.0rc1 of DBUtils.
1 parent 4a52ac3 commit be81a86

25 files changed

Lines changed: 42 additions & 26 deletions

DBUtils/Docs/UsersGuide.de.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1 class="title">Benutzeranleitung für DBUtils</h1>
1616
<tbody valign="top">
1717
<tr><th class="docinfo-name">Version:</th>
1818
<td>1.0pre</td></tr>
19-
<tr class="field"><th class="docinfo-name">Released:</th><td class="field-body">09/25/08</td>
19+
<tr class="field"><th class="docinfo-name">Released:</th><td class="field-body">10/12/08</td>
2020
</tr>
2121
<tr class="field"><th class="docinfo-name">Translations:</th><td class="field-body"><a class="reference" href="UsersGuide.html">English</a> German <a class="reference" href="UsersGuide.zh.html">Chinese</a></td>
2222
</tr>
@@ -316,6 +316,10 @@ <h2><a id="id1" name="id1">PersistentDB</a></h2>
316316
<li><p class="first"><tt class="docutils literal"><span class="pre">closeable</span></tt>: wenn dies auf <tt class="docutils literal"><span class="pre">True</span></tt> gesetzt wird, dann wird das Schließen
317317
von Verbindungen erlaubt, normalerweise wird es jedoch ignoriert</p>
318318
</li>
319+
<li><p class="first"><tt class="docutils literal"><span class="pre">threadlocal</span></tt>: eine optionale Klasse zur Speicherung thread-lokaler Daten,
320+
die anstelle unserer Python-Implementierung benutzt wird (threading.local
321+
ist schneller, kann aber nicht in allen Fällen verwendet werden)</p>
322+
</li>
319323
<li><p class="first">Die als <tt class="docutils literal"><span class="pre">creator</span></tt> angegebene Funktion oder die Funktion <tt class="docutils literal"><span class="pre">connect</span></tt>
320324
des DB-API-2-Datenbankadapter-Moduls erhalten alle weiteren Parameter,
321325
wie <tt class="docutils literal"><span class="pre">host</span></tt>, <tt class="docutils literal"><span class="pre">database</span></tt>, <tt class="docutils literal"><span class="pre">user</span></tt>, <tt class="docutils literal"><span class="pre">password</span></tt> usw. Sie können einige
@@ -345,6 +349,10 @@ <h2><a id="id1" name="id1">PersistentDB</a></h2>
345349
Stattdessen wird die Verbindung automatisch dann geschlossen, wenn der Thread
346350
endet. Sie können dieses Verhalten ändern, indem Sie den Parameter namens
347351
<tt class="docutils literal"><span class="pre">closeable</span></tt> setzen.</p>
352+
<p>Beachten Sie, dass das Holen einer Verbindung etwas beschleunigt werden kann,
353+
indem Sie den Parameter <tt class="docutils literal"><span class="pre">threadlocal</span></tt> auf <tt class="docutils literal"><span class="pre">threading.local</span></tt> setzen; dies
354+
könnte aber in einigen Umgebungen nicht funktionieren (es ist zum Beispiel
355+
bekannt, dass <tt class="docutils literal"><span class="pre">mod_wsgi</span></tt> hier Probleme bereitet, da es Daten, die mit <tt class="docutils literal"><span class="pre">threading.local</span></tt> gespeichert wurden, zwischen Requests löscht).</p>
348356
</div>
349357
<div class="section">
350358
<h2><a id="id2" name="id2">PooledDB</a></h2>

DBUtils/Docs/UsersGuide.de.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
+++++++++++++++++++++++++++++
33

44
:Version: 1.0pre
5-
:Released: 09/25/08
5+
:Released: 10/12/08
66
:Translations: English_ German Chinese_
77

88
.. _English: UsersGuide.html

DBUtils/Docs/UsersGuide.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1 class="title">DBUtils User's Guide</h1>
1616
<tbody valign="top">
1717
<tr><th class="docinfo-name">Version:</th>
1818
<td>1.0pre</td></tr>
19-
<tr class="field"><th class="docinfo-name">Released:</th><td class="field-body">09/25/08</td>
19+
<tr class="field"><th class="docinfo-name">Released:</th><td class="field-body">10/12/08</td>
2020
</tr>
2121
<tr class="field"><th class="docinfo-name">Translations:</th><td class="field-body">English <a class="reference" href="UsersGuide.de.html">German</a> <a class="reference" href="UsersGuide.zh.html">Chinese</a></td>
2222
</tr>
@@ -296,6 +296,10 @@ <h2><a id="id1" name="id1">PersistentDB</a></h2>
296296
<li><p class="first"><tt class="docutils literal"><span class="pre">closeable</span></tt>: if this is set to true, then closing connections will
297297
be allowed, but by default this will be silently ignored</p>
298298
</li>
299+
<li><p class="first"><tt class="docutils literal"><span class="pre">threadlocal</span></tt>: an optional class for representing thread-local data
300+
that will be used instead of our Python implementation
301+
(threading.local is faster, but cannot be used in all cases)</p>
302+
</li>
299303
<li><p class="first">The creator function or the connect function of the DB-API 2 compliant
300304
database module specified as the creator will receive any additional
301305
parameters such as the host, database, user, password etc. You may
@@ -323,6 +327,10 @@ <h2><a id="id1" name="id1">PersistentDB</a></h2>
323327
contrary to the intent of having persistent connections. Instead,
324328
the connection will be automatically closed when the thread dies.
325329
You can change this behavior be setting the <tt class="docutils literal"><span class="pre">closeable</span></tt> parameter.</p>
330+
<p>Note that by setting the <tt class="docutils literal"><span class="pre">threadlocal</span></tt> parameter to <tt class="docutils literal"><span class="pre">threading.local</span></tt>,
331+
getting connections may become a bit faster, but this may not work in
332+
all environments (for instance, <tt class="docutils literal"><span class="pre">mod_wsgi</span></tt> is known to cause problems
333+
here since it clears the <tt class="docutils literal"><span class="pre">threading.local</span></tt> data between requests).</p>
326334
</div>
327335
<div class="section">
328336
<h2><a id="id2" name="id2">PooledDB</a></h2>

DBUtils/Docs/UsersGuide.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
++++++++++++++++++++
33

44
:Version: 1.0pre
5-
:Released: 09/25/08
5+
:Released: 10/12/08
66
:Translations: English German_ Chinese_
77

88
.. _German: UsersGuide.de.html

DBUtils/PersistentDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
103103
"""
104104

105-
__version__ = '1.0pre'
105+
__version__ = '1.0rc1'
106106
__revision__ = "$Rev$"
107107
__date__ = "$Date$"
108108

DBUtils/PersistentPg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
9898
"""
9999

100-
__version__ = '1.0pre'
100+
__version__ = '1.0rc1'
101101
__revision__ = "$Rev$"
102102
__date__ = "$Date$"
103103

DBUtils/PooledDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
122122
"""
123123

124-
__version__ = '1.0pre'
124+
__version__ = '1.0rc1'
125125
__revision__ = "$Rev$"
126126
__date__ = "$Date$"
127127

DBUtils/PooledPg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
9999
"""
100100

101-
__version__ = '1.0pre'
101+
__version__ = '1.0rc1'
102102
__revision__ = "$Rev$"
103103
__date__ = "$Date$"
104104

DBUtils/Properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = 'DBUtils'
22

3-
version = (1, 0, 0, 'pre')
3+
version = (1, 0, 0, 'rc1')
44

55
docs = [
66
{'name': "User's Guide", 'file': 'UsersGuide.html'},

DBUtils/SimplePooledDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
7474
"""
7575

76-
__version__ = '1.0pre'
76+
__version__ = '1.0rc1'
7777
__revision__ = "$Rev$"
7878
__date__ = "$Date$"
7979

0 commit comments

Comments
 (0)