Synchronously refresh table metadata. This applies to a table, and any triggers or indexes attached to the table. See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_agreement_wait`` behavior
(self, keyspace, table, max_schema_agreement_wait=None)
| 2177 | raise DriverException("Keyspace metadata was not refreshed. See log for details.") |
| 2178 | |
| 2179 | def refresh_table_metadata(self, keyspace, table, max_schema_agreement_wait=None): |
| 2180 | """ |
| 2181 | Synchronously refresh table metadata. This applies to a table, and any triggers or indexes attached |
| 2182 | to the table. |
| 2183 | |
| 2184 | See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_agreement_wait`` behavior |
| 2185 | """ |
| 2186 | if not self.control_connection.refresh_schema(target_type=SchemaTargetType.TABLE, keyspace=keyspace, table=table, |
| 2187 | schema_agreement_wait=max_schema_agreement_wait, force=True): |
| 2188 | raise DriverException("Table metadata was not refreshed. See log for details.") |
| 2189 | |
| 2190 | def refresh_materialized_view_metadata(self, keyspace, view, max_schema_agreement_wait=None): |
| 2191 | """ |