Package gavo :: Package base :: Module sqlsupport :: Class StandardQueryMixin
[frames] | no frames]

Class StandardQueryMixin

source code

object --+
         |
        StandardQueryMixin
Known Subclasses:

is a mixin containing various useful queries that should work agains all SQL systems.

This mixin expects a parent that mixes is QuerierMixin (that, for now, also mixes in StandardQueryMixin, so you won't need to mix this in).

The parent also needs to mix in something like PostgresQueryMixin (I might want to define an interface there once I'd like to support other databases).

Instance Methods
 
setSchemaPrivileges(self, rd)
sets the privileges defined on rd to its schema.
source code
 
setTablePrivileges(self, tableDef)
sets the privileges defined in tableDef for that table through querier.
source code
 
setTimeout(self, timeout)
wraps conn.setTimeout for backward compatibility.
source code
 
getTimeout(self)
wraps conn.getTimeout for backward compatibility.
source code

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

Properties

Inherited from object: __class__

Method Details

setSchemaPrivileges(self, rd)

source code 

sets the privileges defined on rd to its schema.

This function will never touch the public schema.

getTimeout(self)

source code 

wraps conn.getTimeout for backward compatibility.

The value is in float seconds.