def uses_database(name="sqlite3"):
    """
    Checks if the game is currently using a given database. This is a
    shortcut to having to use the full backend name.

    Args:
        name (str): One of 'sqlite3', 'mysql', 'postgresql_psycopg2'
        or 'oracle'.

    Returns:
        uses (bool): If the given database is used or not.

    """
    try:
        engine = settings.DATABASES["default"]["ENGINE"]
    except __HOLE__:
        engine = settings.DATABASE_ENGINE
    return engine == "django.db.backends.%s" % name
dataset/ETHPy150Open evennia/evennia/evennia/utils/utils.py/uses_database