Menu ▾ ▴

#136 CsvBindByName on any of several possible header strings?

wont-fix
None
5
2020-08-13
2020-08-13
Andrew M
No

If your CSV's header values change but you still want to match on either, can you? Maybe something like either of these?

@CsvBindByName(column = "user|name") String userName;
@CsvBindByName(column = {"user", "name"}) String userName;

Discussion

  • Andrew M

    Andrew M - 2020-08-13

    ah never mind. Looks like CsvBindAndJoinByName does exactly what I was thinking.

     
  • Andrew Rucker Jones

    • status: open --> wont-fix
    • assigned_to: Andrew Rucker Jones
     
  • Andrew Rucker Jones

    So glad you found it. That's exactly what I was going to suggest.

     

Log in to post a comment.