Skip to content

Support for properties with different order in CSV writer #258

@rzmk

Description

@rzmk

As per the TODO in line 94:

impl<W: Write> PropertyProcessor for CsvWriter<W> {
fn property(&mut self, i: usize, colname: &str, colval: &ColumnValue) -> Result<bool> {
// TODO: support mis-ordered properties?
if self.has_written_first_record {
assert_eq!(
colname,
&self.headers[i + 1],
"CSV features must all have the same column names"
);
} else {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions