Module: WingedCouch::Native::Databases::Bulk

Included in:
WingedCouch::Native::Database
Defined in:
lib/winged_couch/native/databases/bulk.rb

Overview

Module for bulk inserting/updating records

Instance Method Summary collapse

Instance Method Details

#bulk(docs) ⇒ Object


10
11
12
# File 'lib/winged_couch/native/databases/bulk.rb', line 10

def bulk(docs)
  HTTP.post bulk_path, { docs: docs }
end

#bulk_pathObject


14
15
16
# File 'lib/winged_couch/native/databases/bulk.rb', line 14

def bulk_path
  path.join("_bulk_docs")
end