# 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 -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,"

Only export fields named "_id", and subfield ""

WARNING: No space in the fieldset.

## Inspirations & Credits


[Kelley Robinson]( for the flattening algorithm

Imports 2 package(s) ΒΆ