MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / refresh_table_metadata

Method refresh_table_metadata

cassandra/cluster.py:2179–2188  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 8

get_table_metadataMethod · 0.80
test_table_extensionsMethod · 0.80
test_index_updatesMethod · 0.80
test_bad_tableMethod · 0.80
test_bad_indexMethod · 0.80

Calls 2

DriverExceptionClass · 0.90
refresh_schemaMethod · 0.80

Tested by 8

get_table_metadataMethod · 0.64
test_table_extensionsMethod · 0.64
test_index_updatesMethod · 0.64
test_bad_tableMethod · 0.64
test_bad_indexMethod · 0.64