Full pipeline: parse, validate, save. Returns the saved record ID.
(path: str)
| 60 | |
| 61 | |
| 62 | def parse_and_save(path: str) -> str: |
| 63 | """Full pipeline: parse, validate, save. Returns the saved record ID.""" |
| 64 | doc = parse_file(path) |
| 65 | validated = validate_document(doc) |
| 66 | record_id = save_parsed(validated) |
| 67 | return record_id |
| 68 | |
| 69 | |
| 70 | def batch_parse(paths: list) -> list: |
no test coverage detected