mc738 / Freql

A record mapping library for FSharp and various data sources.
MIT License
2 stars 0 forks source link

Support for multiline delimited strings. #13

Open mc738 opened 1 year ago

mc738 commented 1 year ago

Is your feature request related to a problem? Please describe. Csv can support multiline delimited string.

For example:

id, message, other
1, "this is a 
string", 42
2, "this is also a string", 100

would be

[ { Id = 1
    Message = """this is a 
    string"""
    Other = 42 }
  { Id = 2
    Message = "this is also a string"
    Other = 100 } ] 

but this is currently not supported because lines are split in System.Environment.NewLine.

This would be required to be compliant with rfc4180

Describe the solution you'd like In the future it could be possible to change this behaviour so instead content is streamed and only split if the new line is not delimited.

Describe alternatives you've considered Don't change it, csv varies quite a lot and this does make the loading stage a bit more complicated.

Either that or 2 loading modes.

Additional context This will add complexity and I haven't needed it quite yet.

mc738 commented 1 year ago

This is currently low priority and unlikely to make it into v.1.0.0.