polished documentation
This commit is contained in:
parent
26c4db7fc6
commit
b3b58ffa83
6 changed files with 20 additions and 11 deletions
|
@ -5,6 +5,7 @@ module CouchRest
|
|||
@db = db
|
||||
end
|
||||
|
||||
# Stream a view, yielding one row at a time. Shells out to <tt>curl</tt> to keep RAM usage low when you have millions of rows.
|
||||
def view name, params = nil
|
||||
urlst = /^_/.match(name) ? "#{@db.root}/#{name}" : "#{@db.root}/_view/#{name}"
|
||||
url = CouchRest.paramify_url urlst, params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue