1.0.0 • Published 7 years ago
populatedb v1.0.0
populaterandomDB
Example for populating Mongo
//url, opts, collection, url of schema, duration, range of time, amount
populate.populateMongo("mongodb://localhost/test", {}, "pruebasa", "./schema.yaml", 3, 2, 10);
Example for populating ElasticSearch
// url, index,type,duration,range of time, amount
populate.populateElastic("localhost:9200", "test", "log", 30, 2, 10);
1.0.0
7 years ago