| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
psycopg2.extensions.connection --+
|
GAVOConnection
A psycopg2 connection with some additional methods.
This derivation is also done so we can attach the getDBConnection arguments to the connection; it is used when recovering from a database restart.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Properties | |
|
Inherited from Inherited from |
| Method Details |
sets a timeout on queries. timeout is in seconds; timeout=0 disables timeouts (this is what postgres does, too) |
returns the current timeout setting. The value is in float seconds. |
a contextmanager to have a timeout set in the controlled section.
|
iterates over dictionary rows for query. This is mainly for ad-hoc queries needing little metadata. The dictionary keys are determined by what the database says the column titles are; thus, it's usually lower-cased variants of what's in the select-list. To fix this, you can pass in a caseFixer dict that gives a properly cased version of lowercase names. |
executes query in a cursor. This returns the rowcount of the cursor used. |
sets up a section protected by a savepoint that will be released after use. If an exception happens in the controlled section, the connection will be rolled back to the savepoint.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |