Changeset 334


Ignore:
Timestamp:
Oct 9, 2008, 5:02:16 PM (11 years ago)
Author:
cito
Message:

Document changes in DB wrapper class.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/changelog.txt

    r328 r334  
    88- Added row_factory as suggested by Simon Pamies.
    99- Separated between mandatory and additional type objects.
    10 - Added keyword args to insert, update and delete methods
     10- Added keyword args to insert, update and delete methods.
    1111- Added exception handling for direct copy.
    1212- Release the GIL while making a connection
    1313  (as suggested by Peter Schuller).
    1414- If available, use decimal.Decimal for numeric types.
     15- Allow DB wrapper to be used with DB-API 2 connections
     16  (as suggested by Chris Hilton).
     17- Made private attributes of DB wrapper accessible.
    1518
    1619Version 3.8.1 (2006-06-05)
  • trunk/docs/pg.txt

    r329 r334  
    744744The DB class is initialized with the same arguments as the connect
    745745function described in section 2. It also initializes a few
    746 internal variables. The statement ``db = DB()`` will open the
     746internal variables. The statement `db = DB()` will open the
    747747local database with the name of the user just like connect() does.
     748
     749You can also initialize the DB class with an existing `_pg` or `pgdb`
     750connection. Pass this connection as a single unnamed parameter, or as a
     751single parameter named `db`. This allows you to use all of the methods
     752of the DB class with a DB-API 2 compliant connection. Note that the
     753`close()` and `reopen()` methods are inoperative in this case.
     754
     755
    748756
    749757pkey - return the primary key of a table
Note: See TracChangeset for help on using the changeset viewer.