Changeset 805

Show
Ignore:
Timestamp:
03/07/07 22:05:29 (2 years ago)
Author:
mfenniak
Message:

add some docs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pg8000/trunk/pg8000.py

    r804 r805  
    168168# This class represents a connection to a PostgreSQL database. 
    169169# <p> 
    170 # A single PostgreSQL connection can only perform a single query at a time, 
    171 # which is an important restriction to note.  This limitation can be overcome 
    172 # by retrieving all results immediately after a query, but this approach is not 
    173 # taken by this library. 
     170# The database connection is derived from the {@link #Cursor Cursor} class, and 
     171# provides access to the database's unnamed cursor through the standard Cursor 
     172# methods.  It also provides transaction control via the 'begin', 'commit', and 
     173# 'rollback' methods.  Without beginning a transaction explicitly, all 
     174# statements will autocommit to the database. 
    174175# <p> 
    175176# Stability: Added in v1.00, stability guaranteed for v1.xx. 
  • pg8000/trunk/pg8000-test.py

    r804 r805  
    77 
    88cur1 = pg8000.Cursor(db) 
    9 cur2 = pg8000.Cursor(db) 
    109 
    1110cur1.execute("DROP TABLE t1")