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

Method _update_table

cassandra/metadata.py:202–215  ·  view source on GitHub ↗
(self, meta)

Source from the content-addressed store, hash-verified

200 self._keyspace_removed(keyspace)
201
202 def _update_table(self, meta):
203 try:
204 keyspace_meta = self.keyspaces[meta.keyspace_name]
205 # this is unfortunate, but protocol v4 does not differentiate
206 # between events for tables and views. <parser>.get_table will
207 # return one or the other based on the query results.
208 # Here we deal with that.
209 if isinstance(meta, TableMetadata):
210 keyspace_meta._add_table_metadata(meta)
211 else:
212 keyspace_meta._add_view_metadata(meta)
213 except KeyError:
214 # can happen if keyspace disappears while processing async event
215 pass
216
217 def _drop_table(self, keyspace, table):
218 try:

Callers

nothing calls this directly

Calls 2

_add_table_metadataMethod · 0.80
_add_view_metadataMethod · 0.80

Tested by

no test coverage detected