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

Using mongo-tools as a package

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.3.14
    • Affects Version/s: 3.1.6
    • Component/s: All Tools, mongodump
    • Labels:
      None
    • Platforms 2016-08-26

      Perhaps it's a fairly marginal use case, but I would like to be able to use mongo-tools (specifically mongodump) as a package in my own app. This is possible as of now, however there is a couple of unwanted behaviours that I'd love to be able to turn off.

      Speaking of mongodump, it 1) spawns progress manager that dumps the progress of the execution to stdout and 2) sets up signal handlers that kill the app if triggered.
      https://github.com/mongodb/mongo-tools/blob/master/mongodump/mongodump.go#L317

      As far as my understanding of the code goes, these behaviours are optional in nature and it wouldn't hurt if you could pass a switch to Dump() that disables them.

      Do you guys think this is viable?

            Assignee:
            Unassigned Unassigned
            Reporter:
            pavel.numbersandperiods Pavel
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: