Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1097

mongoimport / export should adhere to CSV spec

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.2
    • Component/s: Tools
    • Labels:
      None
    • Backwards Compatibility:
      Major Change

      Description

      Right now we use JSON escaping rules for strings rather than CSV rules.

      Proposal: Strings (and equivalent types like symbol) and numbers get printed directly in CSV format. Other types like objects or arrays get converted to JSON then run through the CSV escaper so they will be valid JSON strings after an import.

      Questions:
      Should Code be a String equivalent or JSON?
      Should OID's be emited as regular hex strings or csv escaped ObjectID("abcde"). The later preserves the distinction between strings and OIDs, but it will make a terrible key if trying to share data with another DB.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: