Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-233

Add predefined CSVFormats for printing MongoDB CSV and TSV

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None

      Description

      Add predefinedĀ CSVFormat constants for MongoDB CSV and TSV.

      Example export fromĀ mongoexport of the same collection of 1 in CSV:

      name1,name2,name3,name4
      a,"a ""c"" b","c,d",e
      

      And JSON for comparison of the handling of comma and double quote in values.

      {"_id":{"$oid":"5bcb746f02defa3ec4758828"},"name1":"a","name2":"a \"c\" b","name3":"c,d","name4":"e"}
      

      To support parsing, we need more work internally...

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              ggregory Gary D. Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: