Repository navigation
v2.10.0
Typed CSV import via a schema.
Added
Excel.fromCsvandExcel.importCsvaccept an optionalschema(a
CsvSchema, now re-exported from excel_plus along withCsvColumnDef). The
first row is treated as the header and each named column's values are coerced
to the declared type (int,double,num,bool,String,DateTime)
instead of being inferred, so a column such as an id can be forced to stay
text (007does not become7). A value that cannot be converted, or a null
in anullable: falsecolumn, throwsCsvParseException. Requires
csv_plus: ^1.2.0.