# Path: django_cassandra_engine/utils.py
# def get_cassandra_connections():
#     """
#     :return: List of tuples (db_alias, connection) for all cassandra
#     connections in DATABASES dict.
#     """
#     from django.db import connections
# 
#     for alias in connections:
#         engine = connections[alias].settings_dict.get("ENGINE", "")
#         if engine == "django_cassandra_engine":
#             yield alias, connections[alias]


from django.core.management.commands.makemigrations import (
    Command as MakeMigrationsCommand,
)
from django.db import connections
from django_cassandra_engine.utils import get_cassandra_connections



class Command(MakeMigrationsCommand):
    @staticmethod
    def _change_cassandra_engine_name(name):

# Path: django_cassandra_engine/utils.py
# def get_cassandra_connections():
#     """
#     :return: List of tuples (db_alias, connection) for all cassandra
#     connections in DATABASES dict.
#     """
#     from django.db import connections
# 
#     for alias in connections:
#         engine = connections[alias].settings_dict.get("ENGINE", "")
#         if engine == "django_cassandra_engine":
#             yield alias, connections[alias]


# Path: django_cassandra_engine/management/commands/makemigrations.py
from django.core.management.commands.makemigrations import (
    Command as MakeMigrationsCommand,
)
from django.db import connections
from django_cassandra_engine.utils import get_cassandra_connections




class Command(MakeMigrationsCommand):
    @staticmethod
    def _change_cassandra_engine_name(name):

        for alias, _ in get_cassandra_connections():