The data loader was designed to help users to populate MongoDB database by test data without extra steps. The data population process requires two calls only: the generator produces a set of JSON files and the loader inserts this set to MongoDB collection. It is a command line Windows application that requires .NET and supports all modern operating system versions.
Download Data Loader, no installation required. The software can be used with DTM Data Generator for JSON only for evaluation or commercial use depends on user's license.
There are four mandatory command line switches:
* - the software does not check for database and collection existence and will create it if necessary.
The following batch contains two steps: data generation and data loading. Both of them will be executed in the console (GUI-free) mode. At the first step, DTM Data Generator for JSON makes a set of test JSON files in "d:\results\JsonFiles" folder. At the second one, the data loader inserts each file as MongoDB document to collection 'Orders' of the database 'SalesDB'.
dgjson.exe -c d:\SalesDb.gjspr MongoDataLoader.exe localhost:27017 SalesDB Orders d:\results\JsonFiles