couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Bonser <mister...@gmail.com>
Subject Re: Triggers
Date Wed, 26 May 2010 16:38:01 GMT
On Wed, May 26, 2010 at 8:26 AM, Guillaume Leprohon <gleprohon@logsys.ca> wrote:
>> Maybe a document update handler is what you're looking for?
>>
>> http://wiki.apache.org/couchdb/Document_Update_Handlers
>>
>> Nils.
>
> That's exactly what I was looking for.  Thanks!
>
>

Keep in mind that there's nothing preventing the user from simply
posting a document directly to the database, bypassing the document
update handler.

You'll want to have a validation function as well, to reject any
documents that aren't valid:
http://wiki.apache.org/couchdb/Document_Update_Validation


-- 
Paul Bonser
http://probablyprogramming.com

Mime
View raw message