package
0.0.0-20250307203412-7e5349ef2bba
Repository: https://github.com/mongodb/mongo-tools.git
Documentation: pkg.go.dev

# Packages

Main package for the mongorestore tool.
No description provided by the author

# Functions

New initializes an instance of MongoRestore according to the provided options.
No description provided by the author
ParseOptions reads the command line arguments and converts them into options used to configure a MongoRestore instance.
ParseTimestampFlag takes in a string the form of <time_t>:<ordinal>, where <time_t> is the seconds since the UNIX epoch, and <ordinal> represents a counter of operations in the oplog that occurred in the specified second.

# Constants

Value is optional, so must use '=' if specifying one.
File types constants used by mongorestore.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
NSOptions command line argument long names.
OutputOptions command line argument long names.
NSOptions command line argument long names.
InputOptions command line argument long names.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
NSOptions command line argument long names.
NSOptions command line argument long names.
OutputOptions command line argument long names.
InputOptions command line argument long names.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
File types constants used by mongorestore.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
NSOptions command line argument long names.
NSOptions command line argument long names.
NSOptions command line argument long names.
NSOptions command line argument long names.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
InputOptions command line argument long names.
InputOptions command line argument long names.
InputOptions command line argument long names.
InputOptions command line argument long names.
OutputOptions command line argument long names.
InputOptions command line argument long names.
Specially treated restore collection types.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
OutputOptions command line argument long names.
File types constants used by mongorestore.
Specially treated restore collection types.
OutputOptions command line argument long names.

# Variables

No description provided by the author
Usage describes basic usage of mongorestore.

# Structs

InputOptions defines the set of options to use in configuring the restore process.
Metadata holds information about a collection's options and indexes.
MongoRestore is a container for the user-specified options and internal state used for running mongorestore.
NSOptions defines the set of options for configuring involved namespaces.
Options defines the set of all options for configuring mongorestore.
OutputOptions defines the set of options for restoring dump data.
Result encapsulates the outcome of a particular restore attempt.

# Interfaces

PosReader is a ReadCloser which maintains the position of what has been read from the Reader.

# Type aliases

FileType describes the various types of restore documents.