Adds column to self.columns attribute and sets in this column the `table` attribute.
(self, c: Column)
| 68 | return sum(c.pk for c in self.columns) > 1 |
| 69 | |
| 70 | def add_column(self, c: Column) -> None: |
| 71 | ''' |
| 72 | Adds column to self.columns attribute and sets in this column the |
| 73 | `table` attribute. |
| 74 | ''' |
| 75 | if not isinstance(c, Column): |
| 76 | raise TypeError('Columns must be of type Column') |
| 77 | c.table = self |
| 78 | self.columns.append(c) |
| 79 | |
| 80 | def delete_column(self, c: Union[Column, int]) -> Column: |
| 81 | if isinstance(c, Column): |
no outgoing calls