A collection of rows consisting of one or more fields (i.e., table columns) of a certain type (i.e., strings, numbers).
(self, name, database)
| 818 | insert = remove = pop = __setitem__ |
| 819 | |
| 820 | def __init__(self, name, database): |
| 821 | """ A collection of rows consisting of one or more fields (i.e., table columns) |
| 822 | of a certain type (i.e., strings, numbers). |
| 823 | """ |
| 824 | self.database = database |
| 825 | self._name = name |
| 826 | self.fields = [] # List of field names (i.e., column names). |
| 827 | self.schema = {} # Dictionary of (field, Schema)-items. |
| 828 | self.default = {} # Default values for Table.insert(). |
| 829 | self.primary_key = None |
| 830 | self._update() |
| 831 | |
| 832 | def _update(self): |
| 833 | # Retrieve table column names. |