Synchronously refresh keyspace metadata. This applies to keyspace-level information such as replication and durability settings. It does not refresh tables, types, etc. contained in the keyspace. See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_
(self, keyspace, max_schema_agreement_wait=None)
| 2166 | raise DriverException("Schema metadata was not refreshed. See log for details.") |
| 2167 | |
| 2168 | def refresh_keyspace_metadata(self, keyspace, max_schema_agreement_wait=None): |
| 2169 | """ |
| 2170 | Synchronously refresh keyspace metadata. This applies to keyspace-level information such as replication |
| 2171 | and durability settings. It does not refresh tables, types, etc. contained in the keyspace. |
| 2172 | |
| 2173 | See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_agreement_wait`` behavior |
| 2174 | """ |
| 2175 | if not self.control_connection.refresh_schema(target_type=SchemaTargetType.KEYSPACE, keyspace=keyspace, |
| 2176 | schema_agreement_wait=max_schema_agreement_wait, force=True): |
| 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 | """ |