[PyGreSQL] [CVS] Change to pygresql: changelog.txt, pg.txt
Christoph Zwerschke
cito at druid.net
Tue Sep 16 18:29:47 EDT 2008
Update of /usr/cvs/Public/pygresql/docs
In directory druid.net:/tmp/cvs-serv1192/docs
Modified Files:
changelog.txt pg.txt
Log Message:
If available, use decimal.Decimal for numeric types.
To see the diffs for this commit:
http://www.druid.net/pygresql/viewcvs.cgi/cvs/pygresql/docs/changelog.txt.diff?r1=1.18&r2=1.19
Index: changelog.txt
===================================================================
RCS file: /usr/cvs/Public/pygresql/docs/changelog.txt,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- changelog.txt 12 Oct 2007 12:20:00 -0000 1.18
+++ changelog.txt 16 Sep 2008 22:29:47 -0000 1.19
@@ -4,11 +4,14 @@
Version 3.8.2 (?)
-----------------
-- Added new method to get parameter settings
-- Added row_factory as suggested by Simon Pamies
-- Separated between mandatory and additional type objects
+- 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 exception handling for direct copy
+- 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.
Version 3.8.1 (2006-06-05)
--------------------------
http://www.druid.net/pygresql/viewcvs.cgi/cvs/pygresql/docs/pg.txt.diff?r1=1.10&r2=1.11
Index: pg.txt
===================================================================
RCS file: /usr/cvs/Public/pygresql/docs/pg.txt,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- pg.txt 6 Jan 2007 16:45:41 -0000 1.10
+++ pg.txt 16 Sep 2008 22:29:47 -0000 1.11
@@ -367,6 +367,20 @@
"select img from pictures where name='Garfield'").getresult[0][0])
file('garfield.gif', 'wb').write(picture)
+set_decimal -- set a decimal type to be used for numeric values
+---------------------------------------------------------------
+Syntax::
+
+ set_decimal(class)
+
+Parameters:
+ :class: the Python class to be used for PostgreSQL numeric values
+
+Description:
+ This function can be used to specify the Python class that shall be
+ used by PyGreSQL to hold PostgreSQL numeric values. The default class
+ is decimal.Decimal if available, otherwise the float type is used.
+
Module constants
----------------
Some constants are defined in the module dictionary.
More information about the PyGreSQL
mailing list