Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Patch #26

Merged
merged 12 commits into from
Jul 21, 2014
Merged

Patch #26

merged 12 commits into from
Jul 21, 2014

Conversation

TZ2016
Copy link
Contributor

@TZ2016 TZ2016 commented Jul 21, 2014

@imlucas

  1. better bin/mongodb-datasets.js: now can do cat schema.json | mongodb-datasets.js --size 10 > out to write the result to file. All supported commands are:
  • --size=<number> - the size of generated docs
  • --populate [--uri <db uri> --collection <name>] - whether to populate the result to mongodb, default is false
  • --raw=true/false whether to format the json docs, default is true
  • made Populator also a Transform stream to support chaining more pipes after it
  • enhanced the scoping feature to support access to parent-level variables by this._$parent.<var>

@TZ2016
Copy link
Contributor Author

TZ2016 commented Jul 21, 2014

Updated all the tests to use the new createGeneratorStream API call.

imlucas added a commit that referenced this pull request Jul 21, 2014
better bin/mongodb-datasets.js
@imlucas imlucas merged commit 954862e into dev Jul 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants