Module t.e.util

Part of twisted.enterprise View Source

Undocumented
Line # Kind Name Docs
34 Class DBError Undocumented
39 Function getKeyColumn Undocumented
46 Function safe Make a string safe to include in an SQL statement
51 Function quote Add quotes for text types and no quotes for integer types.
87 Function makeKW Utility method to construct a dictionary for the attributes
100 Function defaultFactoryMethod Used by loadObjects to create rowObject instances.
109 Class _TableInfo (internal)
154 Class _TableRelationship (Internal)
def getKeyColumn(rowClass, name):
Undocumented
def safe(text):
Make a string safe to include in an SQL statement
def quote(value, typeCode, string_escaper=safe):
Add quotes for text types and no quotes for integer types. NOTE: uses Postgresql type codes.
def makeKW(rowClass, args):
Utility method to construct a dictionary for the attributes of an object from set of args. This also fixes the case of column names.
def defaultFactoryMethod(rowClass, data, kw):
Used by loadObjects to create rowObject instances.