Author: cito
Date: Fri Feb  5 07:43:28 2016
New Revision: 819

Log:
Add type object for the hstore type

Modified:
   trunk/docs/contents/pgdb/types.rst
   trunk/pgdb.py

Modified: trunk/docs/contents/pgdb/types.rst
==============================================================================
--- trunk/docs/contents/pgdb/types.rst  Thu Feb  4 15:56:19 2016        (r818)
+++ trunk/docs/contents/pgdb/types.rst  Fri Feb  5 07:43:28 2016        (r819)
@@ -60,18 +60,6 @@
 
 .. versionadded:: 5.0
 
-.. function:: Bytea(bytes)
-
-    Construct an object capable of holding a bytea value
-
-.. versionadded:: 5.0
-
-.. function:: Interval(days, hours=0, minutes=0, seconds=0, microseconds=0)
-
-    Construct an object holding a time interval value
-
-.. versionadded:: 5.0
-
 .. function:: Hstore(dict)
 
     Construct a wrapper for holding an hstore dictionary
@@ -186,6 +174,12 @@
 
     Used to describe date and time ``interval`` columns
 
+.. object:: HSTORE
+
+    Used to describe ``hstore`` columns
+
+.. versionadded:: 5.0
+
 .. object:: JSON
 
     Used to describe ``json`` and ``jsonb`` columns

Modified: trunk/pgdb.py
==============================================================================
--- trunk/pgdb.py       Thu Feb  4 15:56:19 2016        (r818)
+++ trunk/pgdb.py       Fri Feb  5 07:43:28 2016        (r819)
@@ -1509,6 +1509,7 @@
 TIME = Type('time timetz')
 TIMESTAMP = Type('timestamp timestamptz')
 INTERVAL = Type('interval')
+HSTORE = Type('hstore')
 JSON = Type('json jsonb')
 
 # Type object for arrays (also equate to their base types):
@@ -1558,10 +1559,6 @@
 
 # Additional type helpers for PyGreSQL:
 
-class Bytea(bytes):
-    """Construct an object capable of holding a bytea value."""
-
-
 def Interval(days, hours=0, minutes=0, seconds=0, microseconds=0):
     """Construct an object holding a time inverval value."""
     return timedelta(days, hours=hours, minutes=minutes, seconds=seconds,
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to