function(docs, options) {
          var beforeSend = fullCommit(options);
          $.extend(options, {successStatus: 201, beforeSend : beforeSend});
          ajax({
              type: "POST",
              url: this.uri + "_bulk_docs" + encodeOptions(options),
              contentType: "application/json", data: toJSON(docs)
            },
            options,
            "The documents could not be saved"
          );
        }
function(docs, options) {
          var beforeSend = fullCommit(options);
          $.extend(options, {successStatus: 201, beforeSend : beforeSend});
          ajax({
              type: "POST",
              url: this.uri + "_bulk_docs" + encodeOptions(options),
              contentType: "application/json", data: toJSON(docs)
            },
            options,
            "The documents could not be saved"
          );
        }
function ( docs , options ) { var beforeSend = fullCommit ( options ) ; $ . extend ( options , { successStatus : 201 , beforeSend : beforeSend } ) ; ajax ( { type : "POST" , url : this . uri + "_bulk_docs" + encodeOptions ( options ) , contentType : "application/json" , data : toJSON ( docs ) } , options , "The documents could not be saved" ) ; }
Save a list of documents
@see <a href="http://techzone.couchbase.com/sites/default/files/
uploads/all/documentation/couchbase-api-db.html#couchbase-api-db_
db-bulk-docs_post">docs for /db/_bulk_docs</a>
@param {Object[]} docs List of documents to save
@param {ajaxSettings} options <a href="http://api.jquery.com/
jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>
Save a list of documents