

def _save_case(domain, case):
    if should_use_sql_backend(case):
        CaseAccessorSQL.save_case(case)
    else:
        CommCareCase.get_db().save_doc(case.to_json())

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/data_interfaces/tests/test_auto_case_updates.py _save_case/VarMisuse@15/21 `domain`->`case`