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:
Column
objects describing each column of the table
None
if no primary key is specified
and the following methods:
columnName) |
columnName) |
True
if columnName is the name of a column in the table
columnName) |
columnName) |
Table
objects can also contain any other useful methods which the module implementer feels are appropriate.