Package trac :: Package db :: Module postgres_backend :: Class PostgreSQLConnection

Class PostgreSQLConnection

source code

            object --+    
                     |    
util.ConnectionWrapper --+
                         |
                        PostgreSQLConnection

Connection wrapper for PostgreSQL.
Instance Methods
 
__init__(self, path, log=None, user=None, password=None, host=None, port=None, params={})
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
cast(self, column, type) source code
 
concat(self, *args) source code
 
like(self)
Return a case-insensitive LIKE clause.
source code
 
like_escape(self, text) source code
 
prefix_match(self)
Return a case sensitive prefix-matching operator.
source code
 
prefix_match_value(self, prefix)
Return a value for case sensitive prefix-matching operator.
source code
 
quote(self, identifier)
Return the quoted identifier.
source code
 
get_last_id(self, cursor, table, column='id') source code
 
update_sequence(self, cursor, table, column='id') source code
 
cursor(self) source code
 
drop_table(self, table) source code

Inherited from util.ConnectionWrapper: __getattr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  poolable = True
Properties

Inherited from util.ConnectionWrapper: cnx, log

Inherited from object: __class__

Method Details

__init__(self, path, log=None, user=None, password=None, host=None, port=None, params={})
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)