BulkDocuments
public struct BulkDocuments
A struct representing an array of JSON documents. This is used for adding or updating multiple documents at once using the bulk api.
CouchDB reference: /db/_bulk_docs
-
If false, prevents the database from assigning documents new revision IDs.
If new_edits is nil, CouchDB defaults to true.Declaration
Swift
public let new_edits: Bool? -
An array of JSON
Documentobjects.Declaration
Swift
public var docs: [[String: Any]] -
Initialize a
BulkDocumentsinstance from the documents[String: Any]representation.Declaration
Swift
public init(docs: [[String: Any]], new_edits: Bool? = nil)Parameters
docsAn array of JSON
Documentobjects.
View on GitHub
BulkDocuments Structure Reference