Edit detail for pygreysql pgdb module revision 5 of 5

1 2 3 4 5
Editor: rgouveia
Time: 2014/05/04 01:33:18 GMT+2
Note:

changed:
-<pre>
-NAME
-    pgdb - pgdb - DB-API 2.0 compliant module for PygreSQL.
-
-FILE
-    /usr/local/lib/python2.5/site-packages/pgdb.py
-
-DESCRIPTION
-    (c) 1999, Pascal Andre <andre@via.ecp.fr>.
-    See package documentation for further information on copyright.
-    
-    Inline documentation is sparse.
-    See DB-API 2.0 specification for usage information:
-    http://www.python.org/peps/pep-0249.html
-    
-    Basic usage:
-    
-            pgdb.connect(connect_string) # open a connection
-            # connect_string = 'host:database:user:password:opt:tty'
-            # All parts are optional. You may also pass host through
-            # password as keyword arguments. To pass a port,
-            # pass it in the host keyword parameter:
-            pgdb.connect(host='localhost:5432')
-    
-            connection.cursor() # open a cursor
-    
-            cursor.execute(query[, params])
-            # Execute a query, binding params (a dictionary) if they are
-            # passed. The binding syntax is the same as the % operator
-            # for dictionaries, and no quoting is done.
-        
-            cursor.fetchone() # fetch one row, [value, value, ...]
-    
-            cursor.fetchall() # fetch all rows, [[value, value, ...], ...]
-    
-            cursor.fetchmany([size])
-            # returns size or cursor.arraysize number of rows,
-            # [[value, value, ...], ...] from result set.
-            # Default cursor.arraysize is 1.
-    
-            cursor.description # returns information about the columns
-            #       [(column_name, type_name, display_size,
-            #               internal_size, precision, scale, null_ok), ...]
-            # Note that precision, scale and null_ok are not implemented.
-    
-            cursor.rowcount # number of rows available in the result set
-            # Available after a call to execute.
-    
-            connection.commit() # commit transaction
-    
-            connection.rollback() # or rollback transaction
-    
-            cursor.close() # close the cursor
-    
-            connection.close() # close the connection
-
-
-CLASSES
-    exceptions.StandardError(exceptions.Exception)
-        pg.Error
-            pg.DatabaseError
-                pg.DataError
-                pg.IntegrityError
-                pg.InternalError
-                pg.NotSupportedError
-                pg.OperationalError
-                pg.ProgrammingError
-            pg.InterfaceError
-        pg.Warning
-    pgdbCnx
-    pgdbCursor
-    pgdbType
-    pgdbTypeCache
-    
-    class DataError(DatabaseError)
-     |  Method resolution order:
-     |      DataError
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class DatabaseError(Error)
-     |  Method resolution order:
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class Error(exceptions.StandardError)
-     |  Method resolution order:
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors defined here:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class IntegrityError(DatabaseError)
-     |  Method resolution order:
-     |      IntegrityError
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class InterfaceError(Error)
-     |  Method resolution order:
-     |      InterfaceError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class InternalError(DatabaseError)
-     |  Method resolution order:
-     |      InternalError
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class NotSupportedError(DatabaseError)
-     |  Method resolution order:
-     |      NotSupportedError
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class OperationalError(DatabaseError)
-     |  Method resolution order:
-     |      OperationalError
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class ProgrammingError(DatabaseError)
-     |  Method resolution order:
-     |      ProgrammingError
-     |      DatabaseError
-     |      Error
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors inherited from Error:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class Warning(exceptions.StandardError)
-     |  Method resolution order:
-     |      Warning
-     |      exceptions.StandardError
-     |      exceptions.Exception
-     |      exceptions.BaseException
-     |      __builtin__.object
-     |  
-     |  Data descriptors defined here:
-     |  
-     |  __weakref__
-     |      list of weak references to the object (if defined)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.StandardError:
-     |  
-     |  __init__(...)
-     |      x.__init__(...) initializes x; see x.__class__.__doc__ for signature
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data and other attributes inherited from exceptions.StandardError:
-     |  
-     |  __new__ = <built-in method __new__ of type object at 0x2be37ca0>
-     |      T.__new__(S, ...) -> a new object with type S, a subtype of T
-     |  
-     |  ----------------------------------------------------------------------
-     |  Methods inherited from exceptions.BaseException:
-     |  
-     |  __delattr__(...)
-     |      x.__delattr__('name') <==> del x.name
-     |  
-     |  __getattribute__(...)
-     |      x.__getattribute__('name') <==> x.name
-     |  
-     |  __getitem__(...)
-     |      x.__getitem__(y) <==> x[y]
-     |  
-     |  __getslice__(...)
-     |      x.__getslice__(i, j) <==> x[i:j]
-     |      
-     |      Use of negative indices is not supported.
-     |  
-     |  __reduce__(...)
-     |  
-     |  __repr__(...)
-     |      x.__repr__() <==> repr(x)
-     |  
-     |  __setattr__(...)
-     |      x.__setattr__('name', value) <==> x.name = value
-     |  
-     |  __setstate__(...)
-     |  
-     |  __str__(...)
-     |      x.__str__() <==> str(x)
-     |  
-     |  ----------------------------------------------------------------------
-     |  Data descriptors inherited from exceptions.BaseException:
-     |  
-     |  __dict__
-     |  
-     |  args
-     |  
-     |  message
-     |      exception message
-    
-    class pgdbCnx
-     |  Methods defined here:
-     |  
-     |  __init__(self, cnx)
-     |  
-     |  close(self)
-     |  
-     |  commit(self)
-     |  
-     |  cursor(self)
-     |  
-     |  rollback(self)
-    
-    class pgdbCursor
-     |  Methods defined here:
-     |  
-     |  __init__(self, src, cache)
-     |  
-     |  arraysize(self, size)
-     |  
-     |  close(self)
-     |  
-     |  execute(self, operation, params=None)
-     |  
-     |  executemany(self, operation, param_seq)
-     |  
-     |  fetchall(self)
-     |  
-     |  fetchmany(self, size=None, keep=0)
-     |  
-     |  fetchone(self)
-     |  
-     |  nextset(self)
-     |  
-     |  setinputsizes(self, sizes)
-     |  
-     |  setoutputsize(self, size, col=0)
-    
-    class pgdbType
-     |  Methods defined here:
-     |  
-     |  __cmp__(self, other)
-     |  
-     |  __init__(self, *values)
-    
-    class pgdbTypeCache
-     |  Methods defined here:
-     |  
-     |  __init__(self, cnx)
-     |  
-     |  getdescr(self, oid)
-     |  
-     |  typecast(self, typ, value)
-
-FUNCTIONS
-    Binary(str)
-    
-    Date(year, month, day)
-        # mandatory type helpers
-    
-    DateFromTicks(ticks)
-    
-    Time(hour, minute, second)
-    
-    TimeFromTicks(ticks)
-    
-    Timestamp(year, month, day, hour, minute, second)
-    
-    TimestampFromTicks(ticks)
-    
-    connect(dsn=None, user=None, password=None, host=None, database=None)
-    
-    escape_bytea(...)
-        escape_bytea(data) -- escape binary data for use within SQL as type bytea.
-    
-    escape_string(...)
-        escape_string(str) -- escape a string for use within SQL.
-    
-    get_defbase(...)
-        get_defbase() -- return default database name.
-    
-    get_defhost(...)
-        get_defhost() -- return default database host.
-    
-    get_defopt(...)
-        get_defopt() -- return default database options.
-    
-    get_defport(...)
-        get_defport() -- return default database port.
-    
-    get_deftty(...)
-        get_deftty() -- return default database debug terminal.
-    
-    get_defuser(...)
-        get_defuser() -- return default database username.
-    
-    set_defbase(...)
-        set_defbase(string) -- set default database name. Return previous value
-    
-    set_defhost(...)
-        set_defhost(string) -- set default database host. Return previous value.
-    
-    set_defopt(...)
-        set_defopt(string) -- set default database options. Return previous value.
-    
-    set_defpasswd(...)
-        set_defpasswd() -- set default database password.
-    
-    set_defport(...)
-        set_defport(integer) -- set default database port. Return previous value.
-    
-    set_deftty(...)
-        set_deftty(string) -- set default database debug terminal. Return previous value.
-    
-    set_defuser(...)
-        set_defuser() -- set default database username. Return previous value.
-    
-    unescape_bytea(...)
-        unescape_bytea(str) -- unescape bytea data that has been retrieved as text.
-
-DATA
-    BINARY = <pgdb.pgdbType instance at 0x7fe79f6c>
-    BOOL = <pgdb.pgdbType instance at 0x7fe7b06c>
-    DATETIME = <pgdb.pgdbType instance at 0x7fe7b0ec>
-    FLOAT = <pgdb.pgdbType instance at 0x7fe7b04c>
-    INTEGER = <pgdb.pgdbType instance at 0x7fe79fac>
-    INV_READ = 262144
-    INV_WRITE = 131072
-    LONG = <pgdb.pgdbType instance at 0x7fe79fec>
-    MONEY = <pgdb.pgdbType instance at 0x7fe7b0ac>
-    NUMBER = <pgdb.pgdbType instance at 0x7fe79fcc>
-    RESULT_DDL = 3
-    RESULT_DML = 2
-    RESULT_DQL = 4
-    RESULT_EMPTY = 1
-    ROWID = <pgdb.pgdbType instance at 0x7fe7b10c>
-    SEEK_CUR = 1
-    SEEK_END = 2
-    SEEK_SET = 0
-    STRING = <pgdb.pgdbType instance at 0x7fe79f4c>
-    TRANS_ACTIVE = 1
-    TRANS_IDLE = 0
-    TRANS_INERROR = 3
-    TRANS_INTRANS = 2
-    TRANS_UNKNOWN = 4
-    apilevel = '2.0'
-    paramstyle = 'pyformat'
-    threadsafety = 1
-    version = '3.8.1'
-</pre>