parse_curriculum_csv

Function parse_curriculum_csv 

Source
pub fn parse_curriculum_csv<P: AsRef<Path>>(
    path: P,
) -> Result<School, Box<dyn Error>>
Expand description

Parse a curriculum CSV file and return a School object with all courses and degrees

The parsing happens in three passes:

  1. Load all courses and build ID-to-key mappings
  2. Determine storage keys (handling duplicate natural keys)
  3. Add prerequisites and corequisites using resolved keys

§Arguments

  • path - Path to the CSV file

§Returns

A School object populated with courses and degrees from the file

§Errors

Returns an error if file cannot be read or parsed