NAME
recs-frommongo
recs-frommongo --help-all
recs-frommongo --host user:pass@URI --name DB_NAME --collection COLLECTION --query QUERY
Generate records from a MongoDB query.
Arguments:
--host <HOST_URI> URI for your mongo instance, may include
user:pass@URI
--user <USER> User to authenticate as.
--password <PASSWORD> Password for --user
--name <DB_NAME> Name of database to connect to
--collection <COLLECTION_NAME> Name of collection to query against
--query <QUERY> JSON query string to run against the --
collection
--filename-key|fk <keyspec> Add a key with the source filename (if no
filename is applicable will put NONE)
Help Options:
--help This help screen
Examples:
Make a query against mongo hq
recs-frommongo --host mongodb://user:pass@dharma.mongohq.com:10069 --name my_app --collection my_collection --query '{doc_key: {$not: {$size: 0}}}'
SEE ALSO
See App::RecordStream for an overview of the scripts and the system
Run
recs examples
or see App::RecordStream::Manual::Examples for a set of simple recs examplesRun
recs story
or see App::RecordStream::Manual::Story for a humorous introduction to RecordStreamEvery command has a
--help
mode available to print out usage and examples for the particular command, just like the output above.