refactor: Update importer to use validate-local-db

Also update validation in DB scripts:
* replace alternative validate-db impl with standard CLI one
* Add validation to import script
* Choose to decouple other DB scripts from validate-db as it may go away
  later
This commit is contained in:
Gabriel Horner
2025-12-04 10:13:30 -05:00
parent c8f99d1ff3
commit 8fc56bfaa3
8 changed files with 69 additions and 84 deletions

View File

@@ -109,5 +109,4 @@
(doseq [file-graph file-graphs]
(let [db-graph (fs/path parent-graph-dir (fs/file-name file-graph))]
(println "Importing" (str db-graph) "...")
(apply shell "bb" "dev:db-import" file-graph db-graph import-options)
(shell "bb" "dev:validate-db" db-graph "-gHc")))))
(apply shell "bb" "dev:db-import" file-graph db-graph (concat import-options ["--validate"]))))))