Versions in this module Expand all Collapse all v1 v1.4.3 Nov 17, 2021 v1.4.2 Nov 17, 2021 Changes in this version + var Usage = ... + type IndexDocumentFromDB struct + Key bson.D + Options bson.M + type InputOptions struct + Query string + QueryFile string + ReadPreference string + TableScan bool + func (*InputOptions) Name() string + func (inputOptions *InputOptions) GetQuery() ([]byte, error) + func (inputOptions *InputOptions) HasQuery() bool + type Metadata struct + CollectionName string + Indexes []bson.D + Options bson.M + Type string + UUID string + type MongoDump struct + InputOptions *InputOptions + OutputOptions *OutputOptions + OutputWriter io.Writer + ProgressManager progress.Manager + SessionProvider *db.SessionProvider + SkipUsersAndRoles bool + ToolOptions *options.ToolOptions + func (dump *MongoDump) CreateAllIntents() error + func (dump *MongoDump) CreateCollectionIntent(dbName, colName string) error + func (dump *MongoDump) CreateIntentsForDatabase(dbName string) error + func (dump *MongoDump) CreateOplogIntents() error + func (dump *MongoDump) CreateUsersRolesVersionIntentsForDB(db string) error + func (dump *MongoDump) Dump() (err error) + func (dump *MongoDump) DumpIntent(intent *intents.Intent, buffer resettableOutputBuffer) error + func (dump *MongoDump) DumpIntents() error + func (dump *MongoDump) DumpMetadata() error + func (dump *MongoDump) DumpOplogBetweenTimestamps(start, end primitive.Timestamp) error + func (dump *MongoDump) DumpUsersAndRoles() error + func (dump *MongoDump) DumpUsersAndRolesForDB(name string) error + func (dump *MongoDump) HandleInterrupt() + func (dump *MongoDump) Init() error + func (dump *MongoDump) InitWithClient(client *mongo.Client) error + func (dump *MongoDump) NewIntentFromOptions(dbName string, ci *db.CollectionInfo) (*intents.Intent, error) + func (dump *MongoDump) ValidateOptions() error + type NilPos struct + func (NilPos) Pos() int64 + type Options struct + func ParseOptions(rawArgs []string, versionStr, gitCommit string) (Options, error) + type OutputOptions struct + Archive string + DumpDBUsersAndRoles bool + ExcludedCollectionPrefixes []string + ExcludedCollections []string + Gzip bool + NumParallelCollections int + Oplog bool + Out string + ViewsAsCollections bool + func (*OutputOptions) Name() string