(self, table)
| 1361 | self.memo = {} |
| 1362 | |
| 1363 | def _can_create_table(self, table): |
| 1364 | self.dialect.validate_identifier(table.name) |
| 1365 | effective_schema = self.connection.schema_for_object(table) |
| 1366 | if effective_schema: |
| 1367 | self.dialect.validate_identifier(effective_schema) |
| 1368 | |
| 1369 | bool_to_check = ( |
| 1370 | CheckFirst.TABLES if not table.is_view else CheckFirst.VIEWS |
| 1371 | ) |
| 1372 | return ( |
| 1373 | not self.checkfirst & bool_to_check |
| 1374 | or not self.dialect.has_table( |
| 1375 | self.connection, table.name, schema=effective_schema |
| 1376 | ) |
| 1377 | ) |
| 1378 | |
| 1379 | def _can_create_index(self, index): |
| 1380 | effective_schema = self.connection.schema_for_object(index.table) |
no test coverage detected