Skip to content

Commit 01a6503

Browse files
committed
Fixed Documentation.
1 parent 4e2d7af commit 01a6503

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

DBUtils/Docs/UsersGuide.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ For instance, if you are using ``pgdb`` as your DB-API 2 database module and
244244
want every connection to your local database ``mydb`` to be reused 1000 times::
245245

246246
import pgdb # import used DB-API 2 module
247-
from PersistentDB import PersistentDB
247+
from DBUtils.PersistentDB import PersistentDB
248248
persist = PersistentDB(pgdb, 1000, database='mydb')
249249

250250
Once you have set up the generator with these parameters, you can request
@@ -306,7 +306,7 @@ For instance, if you are using ``pgdb`` as your DB-API 2 database module and
306306
want a pool of at least five connections to your local database ``mydb``::
307307

308308
import pgdb # import used DB-API 2 module
309-
from PooledDB import PooledDB
309+
from DBUtils.PooledDB import PooledDB
310310
pool = PooledPg(pgdb, 5, database='mydb')
311311

312312
Once you have set up the connection pool you can request database connections

DBUtils/PersistentDB.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
every connection to your local database 'mydb' to be reused 1000 times:
4545
4646
import pgdb # import used DB-API 2 module
47-
from PersistentDB import PersistentDB
47+
from DBUtils.PersistentDB import PersistentDB
4848
persist = PersistentDB(pgdb, 1000, database='mydb')
4949
5050
Once you have set up the generator with these parameters, you can
@@ -225,4 +225,4 @@ def __del__(self):
225225
except KeyError:
226226
pass
227227
return __del__
228-
__del__ = __del__()
228+
__del__ = __del__()

DBUtils/PersistentPg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
For instance, if you want every connection to your local database 'mydb'
4646
to be reused 1000 times:
4747
48-
from PersistentPg import PersistentPg
48+
from DBUtils.PersistentPg import PersistentPg
4949
persist = PersistentPg(5, dbname='mydb')
5050
5151
Once you have set up the generator with these parameters, you can
@@ -214,4 +214,4 @@ def __del__(self):
214214
except KeyError:
215215
pass
216216
return __del__
217-
__del__ = __del__()
217+
__del__ = __del__()

DBUtils/PooledDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
want a pool of at least five connections to your local database 'mydb':
5757
5858
import pgdb # import used DB-API 2 module
59-
from PooledDB import PooledDB
59+
from DBUtils.PooledDB import PooledDB
6060
pool = PooledPg(pgdb, 5, database='mydb')
6161
6262
Once you have set up the connection pool you can request

DBUtils/PooledPg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
For instance, if you want a pool of at least five connections
5252
to your local database 'mydb':
5353
54-
from PooledPg import PooledPg
54+
from DBUtils.PooledPg import PooledPg
5555
pool = PooledPg(5, dbname='mydb')
5656
5757
Once you have set up the connection pool you can request

DBUtils/SimplePooledDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
to be cached in the pool and the connection parameters, e.g.
2727
2828
import pgdb # import used DB-API 2 module
29-
from SimplePooledDB import PooledDB
29+
from DBUtils.SimplePooledDB import PooledDB
3030
dbpool = PooledDB(pgdb, 5, host=..., database=..., user=..., ...)
3131
3232
you can demand database connections from that pool,

DBUtils/SimplePooledPg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
number of connections to be cached in the pool and the
2727
connection parameters, e.g.
2828
29-
from SimplePooledPg import PooledPg
29+
from DBUtils.SimplePooledPg import PooledPg
3030
dbpool = PooledPg(5, host=..., database=..., user=..., ...)
3131
3232
you can demand database connections from that pool,

DBUtils/SteadyDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
transparently reset in most situations, without further notice.
4949
5050
import pgdb # import used DB-API 2 module
51-
from SteadyDB import connect
51+
from DBUtils.SteadyDB import connect
5252
db = connect(pgdb, 10000, ["set datestyle to german"],
5353
host=..., database=..., user=..., ...)
5454
...

DBUtils/SteadyPg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
When the connection to the PostgreSQL database is lost or has been
4242
used too often, it will be automatically reset, without further notice.
4343
44-
from SteadyPg import SteadyPgConnection
44+
from DBUtils.SteadyPg import SteadyPgConnection
4545
db = SteadyPgConnection(10000, ["set datestyle to german"],
4646
host=..., dbname=..., user=..., ...)
4747
...

0 commit comments

Comments
 (0)