Skip to main content

expand

Function expand 

Source
pub fn expand(
    path: &str,
) -> Result<Vec<(String, CanonicalValue)>, Box<dyn Error>>
Expand description

Loads a file and returns one (label, value) pair per logical table.

Multi-sheet XLSX and ODS inputs produce multiple entries, one per sheet. All other formats produce exactly one entry. The label is the filename stem for single-table inputs, and <stem> (<sheet>) for multi-sheet inputs.

ยงErrors

Returns an error if the file cannot be read, the format cannot be detected, or the format parser rejects the contents.