MCPcopy Create free account
hub / github.com/PRQL/prql / parse_header

Function parse_header

prqlc/prqlc/src/semantic/resolver/transforms.rs:1074–1076  ·  view source on GitHub ↗
(row: &csv::StringRecord)

Source from the content-addressed store, hash-verified

1072 let mut rdr = csv::Reader::from_reader(text.as_bytes());
1073
1074 fn parse_header(row: &csv::StringRecord) -> Vec<String> {
1075 row.into_iter().map(|x| x.to_string()).collect()
1076 }
1077
1078 fn parse_row(row: csv::StringRecord) -> Vec<Literal> {
1079 row.into_iter()

Callers 1

parse_csvFunction · 0.85

Calls 3

mapMethod · 0.80
into_iterMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected