Files
tfm_ainventory/graphify-out/cache/adf713275662eec04865d2d5c17c13d476f531412b68023fb5fce30f92215499.json

1 line
16 KiB
JSON

{"nodes": [{"id": "backend_db_manager_py", "label": "db_manager.py", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L1"}, {"id": "db_manager_dbmanager", "label": "DbManager", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L17"}, {"id": "db_manager_get_backup_list", "label": "get_backup_list()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L19"}, {"id": "db_manager_get_stats", "label": "get_stats()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L40"}, {"id": "db_manager_create_backup", "label": "create_backup()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L50"}, {"id": "db_manager_enforce_retention", "label": "enforce_retention()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L84"}, {"id": "db_manager_restore_backup", "label": "restore_backup()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L103"}, {"id": "db_manager_export_db", "label": "export_db()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L141"}, {"id": "db_manager_import_db", "label": "import_db()", "file_type": "code", "source_file": "backend/db_manager.py", "source_location": "L149"}, {"id": "db_manager_rationale_20", "label": "List all available backup files with metadata.", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L20"}, {"id": "db_manager_rationale_41", "label": "Calculate storage statistics for backups.", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L41"}, {"id": "db_manager_rationale_51", "label": "Creates a consistent snapshot of the active database using VACUUM INTO.", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L51"}, {"id": "db_manager_rationale_85", "label": "Deletes oldest backups if count exceeds retention limit.", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L85"}, {"id": "db_manager_rationale_104", "label": "Restores a database from a backup file. IMPORTANT: This replaces the pri", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L104"}, {"id": "db_manager_rationale_142", "label": "Returns the path to the active database file for download.", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L142"}, {"id": "db_manager_rationale_150", "label": "Overwrites the active database with the provided file bytes. Creates a s", "file_type": "rationale", "source_file": "backend/db_manager.py", "source_location": "L150"}], "edges": [{"source": "backend_db_manager_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "shutil", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "datetime", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "sqlite3", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "backend_database_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "backend_init_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_dbmanager", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L17", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_get_backup_list", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_get_stats", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L40", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_create_backup", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L50", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_enforce_retention", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L84", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_restore_backup", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L103", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_export_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L141", "weight": 1.0}, {"source": "backend_db_manager_py", "target": "db_manager_import_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L149", "weight": 1.0}, {"source": "db_manager_get_stats", "target": "db_manager_get_backup_list", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L42", "weight": 1.0}, {"source": "db_manager_create_backup", "target": "db_manager_enforce_retention", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L75", "weight": 1.0}, {"source": "db_manager_enforce_retention", "target": "db_manager_get_backup_list", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L91", "weight": 1.0}, {"source": "db_manager_restore_backup", "target": "db_manager_create_backup", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L117", "weight": 1.0}, {"source": "db_manager_import_db", "target": "db_manager_create_backup", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L158", "weight": 1.0}, {"source": "db_manager_rationale_20", "target": "db_manager_dbmanager_get_backup_list", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L20", "weight": 1.0}, {"source": "db_manager_rationale_41", "target": "db_manager_dbmanager_get_stats", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L41", "weight": 1.0}, {"source": "db_manager_rationale_51", "target": "db_manager_dbmanager_create_backup", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L51", "weight": 1.0}, {"source": "db_manager_rationale_85", "target": "db_manager_dbmanager_enforce_retention", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L85", "weight": 1.0}, {"source": "db_manager_rationale_104", "target": "db_manager_dbmanager_restore_backup", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L104", "weight": 1.0}, {"source": "db_manager_rationale_142", "target": "db_manager_dbmanager_export_db", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L142", "weight": 1.0}, {"source": "db_manager_rationale_150", "target": "db_manager_dbmanager_import_db", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/db_manager.py", "source_location": "L150", "weight": 1.0}], "raw_calls": [{"caller_nid": "db_manager_get_backup_list", "callee": "exists", "source_file": "backend/db_manager.py", "source_location": "L22"}, {"caller_nid": "db_manager_get_backup_list", "callee": "listdir", "source_file": "backend/db_manager.py", "source_location": "L25"}, {"caller_nid": "db_manager_get_backup_list", "callee": "endswith", "source_file": "backend/db_manager.py", "source_location": "L26"}, {"caller_nid": "db_manager_get_backup_list", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L27"}, {"caller_nid": "db_manager_get_backup_list", "callee": "stat", "source_file": "backend/db_manager.py", "source_location": "L28"}, {"caller_nid": "db_manager_get_backup_list", "callee": "append", "source_file": "backend/db_manager.py", "source_location": "L29"}, {"caller_nid": "db_manager_get_backup_list", "callee": "BackupInfo", "source_file": "backend/db_manager.py", "source_location": "L29"}, {"caller_nid": "db_manager_get_backup_list", "callee": "fromtimestamp", "source_file": "backend/db_manager.py", "source_location": "L32"}, {"caller_nid": "db_manager_get_backup_list", "callee": "sort", "source_file": "backend/db_manager.py", "source_location": "L36"}, {"caller_nid": "db_manager_get_stats", "callee": "sum", "source_file": "backend/db_manager.py", "source_location": "L43"}, {"caller_nid": "db_manager_get_stats", "callee": "DatabaseStats", "source_file": "backend/db_manager.py", "source_location": "L44"}, {"caller_nid": "db_manager_get_stats", "callee": "len", "source_file": "backend/db_manager.py", "source_location": "L45"}, {"caller_nid": "db_manager_create_backup", "callee": "strftime", "source_file": "backend/db_manager.py", "source_location": "L55"}, {"caller_nid": "db_manager_create_backup", "callee": "now", "source_file": "backend/db_manager.py", "source_location": "L55"}, {"caller_nid": "db_manager_create_backup", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L57"}, {"caller_nid": "db_manager_create_backup", "callee": "execute", "source_file": "backend/db_manager.py", "source_location": "L62"}, {"caller_nid": "db_manager_create_backup", "callee": "text", "source_file": "backend/db_manager.py", "source_location": "L62"}, {"caller_nid": "db_manager_create_backup", "callee": "info", "source_file": "backend/db_manager.py", "source_location": "L63"}, {"caller_nid": "db_manager_create_backup", "callee": "AuditLog", "source_file": "backend/db_manager.py", "source_location": "L66"}, {"caller_nid": "db_manager_create_backup", "callee": "add", "source_file": "backend/db_manager.py", "source_location": "L71"}, {"caller_nid": "db_manager_create_backup", "callee": "commit", "source_file": "backend/db_manager.py", "source_location": "L72"}, {"caller_nid": "db_manager_create_backup", "callee": "error", "source_file": "backend/db_manager.py", "source_location": "L79"}, {"caller_nid": "db_manager_create_backup", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L79"}, {"caller_nid": "db_manager_create_backup", "callee": "rollback", "source_file": "backend/db_manager.py", "source_location": "L80"}, {"caller_nid": "db_manager_create_backup", "callee": "Exception", "source_file": "backend/db_manager.py", "source_location": "L81"}, {"caller_nid": "db_manager_create_backup", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L81"}, {"caller_nid": "db_manager_enforce_retention", "callee": "first", "source_file": "backend/db_manager.py", "source_location": "L88"}, {"caller_nid": "db_manager_enforce_retention", "callee": "filter", "source_file": "backend/db_manager.py", "source_location": "L88"}, {"caller_nid": "db_manager_enforce_retention", "callee": "query", "source_file": "backend/db_manager.py", "source_location": "L88"}, {"caller_nid": "db_manager_enforce_retention", "callee": "int", "source_file": "backend/db_manager.py", "source_location": "L89"}, {"caller_nid": "db_manager_enforce_retention", "callee": "len", "source_file": "backend/db_manager.py", "source_location": "L92"}, {"caller_nid": "db_manager_enforce_retention", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L95"}, {"caller_nid": "db_manager_enforce_retention", "callee": "exists", "source_file": "backend/db_manager.py", "source_location": "L96"}, {"caller_nid": "db_manager_enforce_retention", "callee": "remove", "source_file": "backend/db_manager.py", "source_location": "L97"}, {"caller_nid": "db_manager_enforce_retention", "callee": "info", "source_file": "backend/db_manager.py", "source_location": "L98"}, {"caller_nid": "db_manager_enforce_retention", "callee": "error", "source_file": "backend/db_manager.py", "source_location": "L100"}, {"caller_nid": "db_manager_enforce_retention", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L100"}, {"caller_nid": "db_manager_restore_backup", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L108"}, {"caller_nid": "db_manager_restore_backup", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L109"}, {"caller_nid": "db_manager_restore_backup", "callee": "exists", "source_file": "backend/db_manager.py", "source_location": "L111"}, {"caller_nid": "db_manager_restore_backup", "callee": "Exception", "source_file": "backend/db_manager.py", "source_location": "L112"}, {"caller_nid": "db_manager_restore_backup", "callee": "info", "source_file": "backend/db_manager.py", "source_location": "L116"}, {"caller_nid": "db_manager_restore_backup", "callee": "dispose", "source_file": "backend/db_manager.py", "source_location": "L121"}, {"caller_nid": "db_manager_restore_backup", "callee": "copy2", "source_file": "backend/db_manager.py", "source_location": "L125"}, {"caller_nid": "db_manager_restore_backup", "callee": "warning", "source_file": "backend/db_manager.py", "source_location": "L127"}, {"caller_nid": "db_manager_restore_backup", "callee": "error", "source_file": "backend/db_manager.py", "source_location": "L137"}, {"caller_nid": "db_manager_restore_backup", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L137"}, {"caller_nid": "db_manager_restore_backup", "callee": "Exception", "source_file": "backend/db_manager.py", "source_location": "L138"}, {"caller_nid": "db_manager_restore_backup", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L138"}, {"caller_nid": "db_manager_export_db", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L143"}, {"caller_nid": "db_manager_export_db", "callee": "exists", "source_file": "backend/db_manager.py", "source_location": "L144"}, {"caller_nid": "db_manager_export_db", "callee": "Exception", "source_file": "backend/db_manager.py", "source_location": "L145"}, {"caller_nid": "db_manager_import_db", "callee": "join", "source_file": "backend/db_manager.py", "source_location": "L154"}, {"caller_nid": "db_manager_import_db", "callee": "dispose", "source_file": "backend/db_manager.py", "source_location": "L161"}, {"caller_nid": "db_manager_import_db", "callee": "open", "source_file": "backend/db_manager.py", "source_location": "L164"}, {"caller_nid": "db_manager_import_db", "callee": "write", "source_file": "backend/db_manager.py", "source_location": "L165"}, {"caller_nid": "db_manager_import_db", "callee": "warning", "source_file": "backend/db_manager.py", "source_location": "L167"}, {"caller_nid": "db_manager_import_db", "callee": "error", "source_file": "backend/db_manager.py", "source_location": "L170"}, {"caller_nid": "db_manager_import_db", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L170"}, {"caller_nid": "db_manager_import_db", "callee": "Exception", "source_file": "backend/db_manager.py", "source_location": "L171"}, {"caller_nid": "db_manager_import_db", "callee": "str", "source_file": "backend/db_manager.py", "source_location": "L171"}]}