package
0.0.0-20250307203412-7e5349ef2bba
Repository: https://github.com/mongodb/mongo-tools.git
Documentation: pkg.go.dev
# Packages
Main package for the mongoexport tool.
# Functions
New constructs a new MongoExport instance from the provided options.
NewCSVExportOutput returns a CSVExportOutput configured to write output to the given io.Writer, extracting the specified fields only.
NewJSONExportOutput creates a new JSONExportOutput in array mode if specified, configured to write data to the given io.Writer.
ParseOptions reads command line arguments and converts them into options that can be used to configure mongoexport.
# Variables
No description provided by the author
# Structs
CSVExportOutput is an implementation of ExportOutput that writes documents to the output in CSV format.
InputOptions defines the set of options to use in retrieving data from the server.
JSONExportOutput is an implementation of ExportOutput that writes documents to the output in JSON format.
MongoExport is a container for the user-specified options and internal state used for running mongoexport.
Options represents all possible options that can be used to configure mongoexport.
OutputFormatOptions defines the set of options to use in formatting exported data.
# Interfaces
ExportOutput is an interface that specifies how a document should be formatted and written to an output stream.
# Type aliases
JSONFormat is the type for all valid extended JSON formats to output.