Fix: create repo record before files (foreign key constraint)

This commit is contained in:
Jarvis Prime
2026-03-04 04:43:54 +00:00
parent 357f4905ed
commit e28e1a61b2

View File

@@ -97,6 +97,9 @@ def run():
print("\n[5/6] Loading into database...")
db = GraphDB()
# Create repo first (empty doc — will be filled in step 6)
db.create_repo(name=repo_name, url=TARGET_REPO, language="go", documentation="(generating...)")
for rel_path, content in go_files.items():
info = parsed[rel_path]
doc = file_doc_map.get(rel_path, "")