Table objects can be accessed through the
tables attribute of the
Connection object like this:
>>> print connection.tables['tableName'].name tableName >>> print connection.tables['tableName']['columnName'].name columnName
Table objects store all the meta data there is to know about an SQL table. They are created by the web.database module and should not be created manually. They are simply structures to hold table information. The values should not be changed.
Table objects have the following attributes:
Columnobjects describing each column of the table
Noneif no primary key is specified
and the following methods:
Trueif columnName is the name of a column in the table
Table objects can also contain any other useful methods which the module implementer feels are appropriate.