Method: Foxit::ETL#insert_many_docs
- Defined in:
- lib/foxit/etl.rb
#insert_many_docs(collection_name, docs) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/foxit/etl.rb', line 18 def insert_many_docs collection_name, docs begin puts "inserting..." result = @client[collection_name].insert_many(docs) puts "records inserted: #{result.inserted_count}" rescue StandardError => e puts "error: #{e}" end puts "complete.\n" end |