| Home | Trees | Indices | Help |
|
|---|
|
|
Class to represent a field in a database
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
"field_name": field name in the database
"data_type": data type of this field
"default_value"
"null": By default, it is accecpted a null value. If not, it is necessary to specify it
"foreign_key": it is a tuples with the table and the Field of its correspondent key
(TableObject, FieldObject)
They should be of the same data_type!!!
"user_friendly_name": This is used to refer to this field in a user friendly manner (for different fields in different tables that have the same meaning...)
"optimize_space": This is used to apply the space optimization for this field. It consists on saving the unique values of this field in a separated table, and an integer cross-reference is saved in the original table. It can be None, or the number of bytes reserved to index it
|
Returns the number of bytes for the optimized form of the field, if it has. Otherwise, return None |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue May 26 17:06:25 2009 | http://epydoc.sourceforge.net |