def table_names(self, cursor=None, **kwargs):
<EOL>if cursor:<EOL><INDENT>return []<EOL><DEDENT>connection = self.connection.connection<EOL>keyspace_name = connection.keyspace<EOL>if not connection.cluster.schema_metadata_enabled andkeyspace_name not in connection.cluster.metadata.keyspaces:<EOL><INDENT>connection.cluster.refresh_schema_metadata()<EOL><DEDENT>keyspace = connection.cluster.metadata.keyspaces[keyspace_name]<EOL>return keyspace.tables<EOL>
Returns all table names in current keyspace