Package backend :: Package server :: Package rhnSQL :: Module driver_postgresql :: Class Procedure
[hide private]
[frames] | no frames]

Class Procedure

source code


PostgreSQL functions are somewhat different than stored procedures in other databases. As a result the python-pgsql does not even implement the Python DBI API callproc method.

To workaround this and keep rhnSQL database independent, we'll translate any incoming requests to call a procedure into a PostgreSQL query.

Instance Methods [hide private]
 
__init__(self, name, cursor) source code
 
__call__(self, *args) source code

Inherited from sql_base.Procedure: __del__

Method Details [hide private]

__init__(self, name, cursor)
(Constructor)

source code 
Overrides: sql_base.Procedure.__init__

__call__(self, *args)
(Call operator)

source code 
Overrides: Function.__call__