Sign inSign up

aofdev/insert-jsonfile-to-mongodb

By aofdev

Updated over 5 years ago

Insert JSON file to mongo and a support parsing field DateTime insert field type date in MongoDB.

Image
1

1.1K

aofdev/insert-jsonfile-to-mongodb repository overview

insert-jsonfile-to-mongodb

A support parsing field DateTime insert field type date in MongoDB.

ArgumentDescription
mongo_uria URI which can be used to connect a Mongo. example mongodb://root:root!@localhost:27017/
mongo_dbMongo Database example testdb
mongo_collectionMongo Collection example test_collection
jsonfilea path json file

Example

docker run --rm -it -v $(pwd):/tmp aofdev/insert-jsonfile-to-mongodb:latest bash -c "python main.py --mongo_uri='mongodb://root:!@localhost:27017/?authSource=admin' --mongo_db='testdb' --mongo_collection='test_collection' --jsonfile='/tmp/example/test_data.json'"

Tag summary

Content type

Image

Digest

Size

46.1 MB

Last updated

over 5 years ago

docker pull aofdev/insert-jsonfile-to-mongodb