couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Copenhaver <>
Subject Re: couchdb: update_handler get view
Date Fri, 04 Nov 2011 17:20:00 GMT
I'm pretty sure all the design document functions are suppose to be run in
isolation and have no access to anything much more then CommonJS modules
and their inputs. Since they are suppose to be pure functions (no side
effects) I believe there is no intention of adding access to databases from
inside of them.

You'll have to use client code or a _changes listener perhaps if you need
to store the rules in documents.

On Fri, Nov 4, 2011 at 1:08 PM, N/A N/A <> wrote:

> Hello,
> Is it possible access _view from update_handler ? I did try using ajax,
> but couch gives me "Error(\"No XMLHTTPRequest support detected\")". I need
> this information, because i receive messages in random format. I want to
> define message translation rules before insertion. Rules are stored in
> couchdb.
> Another idea is to use external process for this task.
> Regards

“The limits of language are the limits of one's world. “ - Ludwig von

"Water is fluid, soft and yielding. But water will wear away rock, which is
rigid and cannot yield. As a rule, whatever is fluid, soft and yielding
will overcome whatever is rigid and hard. This is another paradox: what is
soft is strong." - Lao-Tzu

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message