(self, table)
| 443 | return self.TYPES_BY_NAME[type_name] |
| 444 | |
| 445 | def create_table(self, table): |
| 446 | LOG.info('Creating table %s', table.name) |
| 447 | if not table.cols: |
| 448 | raise Exception('At least one col is required') |
| 449 | table_sql = self.make_create_table_sql(table) |
| 450 | LOG.debug(table_sql) |
| 451 | self.execute(table_sql) |
| 452 | LOG.debug('Created table %s', table.name) |
| 453 | |
| 454 | def make_create_table_sql(self, table): |
| 455 | column_declarations = [] |