11
2- PyGreSQL - v3.1 : PostgreSQL module for Python
2+ PyGreSQL - v3.2 : PostgreSQL module for Python
33==============================================
44
550. Copyright notice
66===================
77
8- PyGreSQL, version 3.1
8+ PyGreSQL, version 3.2
99 A Python interface for PostgreSQL database.
1010 Written by D'Arcy J.M. Cain, darcy@druid.net<BR>
1111 Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.
@@ -28,9 +28,15 @@ PyGreSQL - v3.1: PostgreSQL module for Python
2828 AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
2929 ENHANCEMENTS, OR MODIFICATIONS.
3030
31- Further modifications copyright 1997, 1998 and 1999 by D'Arcy J.M. Cain
31+ Further modifications copyright 1997 - 2000 by D'Arcy J.M. Cain
3232 (darcy@druid.net) subject to the same terms and conditions as above.
3333
34+ Note that as of March 1 2001 the development of PyGreSQL has been moved
35+ directly into the PostgreSQL development tree and is subject to the
36+ PostgreSQL copyright except where contradicted by the above copyrights
37+ in which case the above copyrights apply.
38+
39+
34401. Presentation
3541===============
3642
@@ -69,6 +75,7 @@ version of PyGreSQL works with PostgreSQL 6.5 and Python 1.5.2.
6975 ChangeLog - changes that affected this package during its history
7076 pgmodule.c - the C python module
7177 pg.py - PyGreSQL DB class.
78+ pgdb.py - DB-SIG DB-API 2.0 compliant API wrapper for PygreSQL
7279 tutorial/ - demos directory
7380 Content: basics.py, syscat.py, advanced.py, func.py and
7481 pgtools.py. The samples here have been taken from the
@@ -107,10 +114,10 @@ GENERAL
107114 you probably need to install packages such as Python-devel in addition to
108115 the Python package.
109116
110- * PyGreSQL is implemented as two parts, a C module labeled _pg and a
111- Python wrapper called pg.py. This changed between 2.1 and 2.2. This
112- should not affect any existing programs but the installation is slightly
113- different.
117+ * PyGreSQL is implemented as three parts, a C module labeled _pg and two
118+ Python wrappers called pg.py and pgdb.py. This changed between 2.1 and
119+ 2.2 and again in 3.0. These changes should not affect any existing
120+ programs but the installation is slightly different.
114121
115122* Download and unpack the PyGreSQL tarball if you haven't already done so.
116123
@@ -217,16 +224,32 @@ For support:
217224
218225 - Python: newgroup comp.lang.python
219226 - PostgreSQL: mailing list (see package documentation for information)
220- - PyGres95: contact me (andre@via.ecp.fr) for bug reports, ideas, remarks
221- I will try to answer as long as my free time allow me to do
222- that.
223- - PyGreSQL: contact me (darcy@druid.net) concerning the changes to 2.x.
227+ - PyGres95: contact me (andre@via.ecp.fr) for bug reports, ideas,
228+ remarks I will try to answer as long as my free time allow
229+ me to do that.
230+ - PyGreSQL: contact me (darcy@druid.net) concerning the changes to 2.x
231+ and up. If you would like to proposes changes please
232+ join the PyGreSQL mailing list and send context diffs
233+ there. See http://www.vex.net/mailman/listinfo/pygresql
234+ to join the mailing list.
224235
225236
2262372. Programming information
227238==========================
228239
229- This module defines three objects: the pgobject that handles the connection
240+ You may either choose to use the old, mature interface provided by the
241+ 'pg' module or else the newer 'pgdb' interface compliant with DB-API 2.0
242+ specification developed by the Python DB-SIG.
243+
244+ The remainder of this chapter and the next chapter describe only
245+ the older 'pg' API. As long as PyGreSQL does not contain a
246+ description of the DB-API you should read about the API at
247+ http://www.python.org/topics/database/DatabaseAPI-2.0.html
248+
249+ A tutorial like introduction to the DB-API can be found at
250+ http://www2.linuxjournal.com/lj-issues/issue49/2605.html
251+
252+ The 'pg' module defines three objects: the pgobject that handles the connection
230253and all the requests to the database, the pglargeobject that handles
231254all the accesses to Postgres large objects and pgqueryobject that handles
232255query results.
@@ -1056,7 +1079,7 @@ The C module needs to be cleaned up and redundant code merged.
10561079
10571080The DB-API module needs to be documented.
10581081
1059- The fetch method should use real cursers .
1082+ The fetch method should use real cursors .
10601083
10611084
106210856. Future directions
0 commit comments