Update of /usr/cvs/Public/pygresql/docs
In directory druid.net:/tmp/cvs-serv22291

Modified Files:
        changelog.txt pg.txt 
Log Message:
Document changes in DB wrapper class.
To see the diffs for this commit:
   
http://www.druid.net/pygresql/viewcvs.cgi/cvs/pygresql/docs/changelog.txt.diff?r1=1.19&r2=1.20

Index: changelog.txt
===================================================================
RCS file: /usr/cvs/Public/pygresql/docs/changelog.txt,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- changelog.txt       16 Sep 2008 22:29:47 -0000      1.19
+++ changelog.txt       9 Oct 2008 21:02:16 -0000       1.20
@@ -7,11 +7,14 @@
 - Added new method to get parameter settings.
 - Added row_factory as suggested by Simon Pamies.
 - Separated between mandatory and additional type objects.
-- Added keyword args to insert, update and delete methods
+- Added keyword args to insert, update and delete methods.
 - Added exception handling for direct copy.
 - Release the GIL while making a connection
   (as suggested by Peter Schuller).
 - If available, use decimal.Decimal for numeric types.
+- Allow DB wrapper to be used with DB-API 2 connections
+  (as suggested by Chris Hilton).
+- Made private attributes of DB wrapper accessible.
 
 Version 3.8.1 (2006-06-05)
 --------------------------

   
http://www.druid.net/pygresql/viewcvs.cgi/cvs/pygresql/docs/pg.txt.diff?r1=1.12&r2=1.13

Index: pg.txt
===================================================================
RCS file: /usr/cvs/Public/pygresql/docs/pg.txt,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- pg.txt      17 Sep 2008 09:00:08 -0000      1.12
+++ pg.txt      9 Oct 2008 21:02:16 -0000       1.13
@@ -743,9 +743,17 @@
 --------------
 The DB class is initialized with the same arguments as the connect
 function described in section 2. It also initializes a few
-internal variables. The statement ``db = DB()`` will open the
+internal variables. The statement `db = DB()` will open the
 local database with the name of the user just like connect() does.
 
+You can also initialize the DB class with an existing `_pg` or `pgdb`
+connection. Pass this connection as a single unnamed parameter, or as a
+single parameter named `db`. This allows you to use all of the methods
+of the DB class with a DB-API 2 compliant connection. Note that the
+`close()` and `reopen()` methods are inoperative in this case.
+
+
+
 pkey - return the primary key of a table
 ----------------------------------------
 Syntax::

_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to