Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-1034

add an "--assertExists" option to mongoexport

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.13, 3.2.8, 3.3.11
    • Component/s: mongoexport
    • Labels:
      None
    • Backport Requested:
      v3.2, v3.0
    • Documentation Changes:
      Needed

      Description

      When using the "-c" option to mongoexport, the command will cheerily comply if exporting from a collection that does not exist (and report that 0 records were exported).

      The mongodb node driver has a "strict" option that allows a user to specify that commands should fail if a collection is not yet defined. Can you add a similar option to mongoexport?

      I have a use case where I'd like to be able to distinguish between a collection that does not exist, and a collection that has 0 records.

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              zach.snow Zach Snow
              Reporter:
              elephant.jim Jim Rath
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: