mgoexport

command module
v0.0.0-...-a618bf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2015 License: MIT Imports: 11 Imported by: 0

README

mgoexport

Tool to export MongoDB Collection as CSV files (Golang)

Usage

mgoexport -db "test" -c "test" -o "test.csv"

Export ALL columns of ALL entries of the collection in the given CSV file

mgoexport -H 127.0.0.1:27017 -db "remote_test" -c "test" -o "remote.csv"

Same effect as the previous command but connect to a remote server

mgoexport -db "test" -c "test" -o "test.csv" -f "_id,range.to"

Only export fields named "_id", and subfield "range.to"

WARNING: No space in the fieldset.

Inspirations & Credits

json2csv

Kelley Robinson for the flattening algorithm

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL