csvside
csvside copied to clipboard
CSV reader and writer combinators for Scala. Made with Cats.
Hi there I notice when there is different cases on the headers, the parsing will fail. For example replace `RowReaderFixtures.testReader` line ```"Str".read[String],``` with this line ```"str".read[String],``` and you will have...
Current implementation does not allow configuration of underlying CSVReader, such as separator character and quote character. Simple implementation could have an implicit `CSVReaderConfiguration` implementation.
In the README we use: ``` import cats.syntax.cartesian._ ``` This has been deprecated. Let's update the README.
Current implementation does not allow parsing empty cells: @ ``` Invalid(List(CsvError(2,CsvPath(List(Naam2)),Column was empty))) ``` even when typing the case class with `Option[String]`. #
Using `fromFile` generates an exception with a stream closed too soon. The iterator is lazy, and we close the file around it before a program can consume the rows.
A CSV with duplicate column names... ``` Home School, Allocation, Joint School, Allocation ``` ...modelled as: `(String, Double, Option[String], Option[Double])` will fail to parse a valid row such as: ```...