Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 467 invoked from network); 13 Apr 2009 10:42:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 10:42:47 -0000 Received: (qmail 56956 invoked by uid 500); 13 Apr 2009 10:40:12 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56887 invoked by uid 500); 13 Apr 2009 10:40:10 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 56790 invoked by uid 99); 13 Apr 2009 10:39:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 10:39:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of patrick.antivackis@gmail.com designates 209.85.218.170 as permitted sender) Received: from [209.85.218.170] (HELO mail-bw0-f170.google.com) (209.85.218.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 10:39:35 +0000 Received: by bwz18 with SMTP id 18so2343671bwz.11 for ; Mon, 13 Apr 2009 03:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=VGfAgSNPUG/ulCwN5PcanCRQCakXlsg5d/+CG/3hEy4=; b=yA7KRoGJUrE9N19Iuuq4xtZQ9DO/wOQzbi4JtC0YhTvsuhoqRtBNSJEHtTDg0DY7b5 iLot7Nb4v84svQ932x2kM4v4LnnafAYrpyslMa7yp/1iipamsOCHd69nUVEtbLvR4nHt lC9PORUZ0bl0AeqxpV6V6IFejdfHXnoUj7DSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Lw9GayxRQMPi/Qs/G8cU8RfXyi5JB4X/iovhu53fZ3ENnCw7T5Fc2dyFX6Cp/7E7qd eEAyGeU/NUFGbXWSsDeEr3XC0VKbrgipAh2egt46B/+GQB58vyZn/t52LxxNufWhHWk0 PnU5m+dzUTax2YpP/0OfbkCvfkh+1ROVYxanM= MIME-Version: 1.0 Received: by 10.223.124.17 with SMTP id s17mr1670440far.79.1239619155096; Mon, 13 Apr 2009 03:39:15 -0700 (PDT) In-Reply-To: <88764914.20090413154947@mail.ru> References: <88764914.20090413154947@mail.ru> Date: Mon, 13 Apr 2009 12:39:15 +0200 Message-ID: <7060483c0904130339t6ce296fdm24a8d174a3d7a4d2@mail.gmail.com> Subject: Re: server side programming (stored procedures) From: Patrick Antivackis To: user@couchdb.apache.org, sftf Content-Type: multipart/alternative; boundary=001636c5adfe65763604676d5383 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5adfe65763604676d5383 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Nothing like this inside CouchDB you need to make an application tier on your own for this. The business logic inside couchDB is to create view not to update or modify document. http://wiki.apache.org/couchdb/HTTP_view_API You also have special formatting function (show /list ) to enable to display document or view in something other than JSON. http://wiki.apache.org/couchdb/Formatting_with_Show_and_List Regards 2009/4/13 sftf > I can not understand how to implement the application logic on the database > side in couchdb. > Is there an equivalent of stored procedures? > Can I, for example, to write the database code to receive certain documents > from view, > process them, and create new documents or modify the existing? > And all this is inside database - only by one call from client. > Thanks. > > --001636c5adfe65763604676d5383--