1 line
3.8 KiB
JSON
1 line
3.8 KiB
JSON
{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "label": "database.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L1"}, {"id": "core_database_get_db", "label": "get_db()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L20"}, {"id": "core_database_auto_fill_create_dept_id", "label": "_auto_fill_create_dept_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L30"}, {"id": "core_database_rationale_31", "label": "ORM before_insert \u94a9\u5b50\uff1a\u5f53 create_dept_id \u4e3a\u7a7a\u65f6\uff0c\u81ea\u52a8\u4ece\u8bf7\u6c42\u4e0a\u4e0b\u6587\u586b\u5145\u5f53\u524d\u7528\u6237\u90e8\u95e8 ID", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L31"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L1", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "target": "sqlalchemy_ext_declarative", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L2", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "target": "app_core_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "target": "core_database_get_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L20", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_database_py", "target": "core_database_auto_fill_create_dept_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L30", "weight": 1.0}, {"source": "core_database_rationale_31", "target": "core_database_auto_fill_create_dept_id", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L31", "weight": 1.0}], "raw_calls": [{"caller_nid": "core_database_get_db", "callee": "SessionLocal", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L22"}, {"caller_nid": "core_database_get_db", "callee": "close", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L26"}, {"caller_nid": "core_database_auto_fill_create_dept_id", "callee": "hasattr", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L32"}, {"caller_nid": "core_database_auto_fill_create_dept_id", "callee": "getattr", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L32"}, {"caller_nid": "core_database_auto_fill_create_dept_id", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/database.py", "source_location": "L34"}]} |