Style

The base Style class, and also the simplest implementation. No translation occurs -- column names and attribute names match, as do class names and table names (when using auto class or schema generation).


Methods

f __format__(...) ...

default object formatter

f __subclasshook__(...) ...

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

f __sizeof__(...) ...

__sizeof__() -> int size of object in memory, in bytes

f __init__(self, pythonAttrToDBColumn=None, dbColumnToPythonAttr=None, pythonClassToDBTable=None, dbTableToPythonClass=None, idForTable=None, longID=False) ...

f pythonAttrToDBColumn(self, attr) ...

f dbColumnToPythonAttr(self, col) ...

f pythonClassToDBTable(self, className) ...

f dbTableToPythonClass(self, table) ...

f idForTable(self, table) ...

f pythonClassToAttr(self, className) ...

f instanceAttrToIDAttr(self, attr) ...

f instanceIDAttrToAttr(self, attr) ...

f tableReference(self, table) ...

See the source for more information.