code: function(options) {
            var type = "GET";
            var data = null;
            if (options["keys"]) {
              type = "POST";
              var keys = options["keys"];
              delete options["keys"];
              data = toJSON({ "keys": keys });
            }
            ajax({
                type: type,
                data: data,
                url: this.uri + "_all_docs" + encodeOptions(options)
              },
              options,
              "An error occurred retrieving a list of all documents"
            );
          }
docs: Fetch all the docs in this db, you can specify an array of keys to
  fetch by passing the <code>keys</code> field in the
  <code>options</code>
  parameter.
  @see <a href="http://techzone.couchbase.com/sites/default/files/
  uploads/all/documentation/couchbase-api-db.html#couchbase-api-db_
  db-all-docs_get">docs for /db/all_docs/</a>
  @param {ajaxSettings} options <a href="http://api.jquery.com/
  jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>