Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1532

bsondump should support reading from stdin

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      While you can work around this limitation by using <(command) as the input filename, it would be more idiomatic if you could just use bsondump in a normal pipeline as a filter. I see three options

      • Read from stdin automatically if no filename is specified. Maybe still display help if stdin isatty(stdin).
      • Use '-' as a magic filename like mongodump (users can still do './-' if they really want to use a file named '-')
      • Add a --stdin option

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: