def get_cassandra_connections():
from django.db import connections<EOL>for alias in connections:<EOL><INDENT>engine = connections[alias].settings_dict.get('<STR_LIT>', '<STR_LIT>')<EOL>if engine == '<STR_LIT>':<EOL><INDENT>yield alias, connections[alias]<EOL><DEDENT><DEDENT>
:return: List of tuples (db_alias, connection) for all cassandra
connections in DATABASES dict.