Changeset 819 for trunk


Ignore:
Timestamp:
Feb 5, 2016, 7:43:28 AM (4 years ago)
Author:
cito
Message:

Add type object for the hstore type

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contents/pgdb/types.rst

    r817 r819  
    6161.. versionadded:: 5.0
    6262
    63 .. function:: Bytea(bytes)
    64 
    65     Construct an object capable of holding a bytea value
    66 
    67 .. versionadded:: 5.0
    68 
    69 .. function:: Interval(days, hours=0, minutes=0, seconds=0, microseconds=0)
    70 
    71     Construct an object holding a time interval value
    72 
    73 .. versionadded:: 5.0
    74 
    7563.. function:: Hstore(dict)
    7664
     
    186174
    187175    Used to describe date and time ``interval`` columns
     176
     177.. object:: HSTORE
     178
     179    Used to describe ``hstore`` columns
     180
     181.. versionadded:: 5.0
    188182
    189183.. object:: JSON
  • trunk/pgdb.py

    r818 r819  
    15101510TIMESTAMP = Type('timestamp timestamptz')
    15111511INTERVAL = Type('interval')
     1512HSTORE = Type('hstore')
    15121513JSON = Type('json jsonb')
    15131514
     
    15581559
    15591560# Additional type helpers for PyGreSQL:
    1560 
    1561 class Bytea(bytes):
    1562     """Construct an object capable of holding a bytea value."""
    1563 
    15641561
    15651562def Interval(days, hours=0, minutes=0, seconds=0, microseconds=0):
Note: See TracChangeset for help on using the changeset viewer.