From couchdb-user-return-1312-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Mon Sep 15 13:08:58 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 7541 invoked from network); 15 Sep 2008 13:08:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Sep 2008 13:08:58 -0000 Received: (qmail 73349 invoked by uid 500); 15 Sep 2008 13:08:53 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 73325 invoked by uid 500); 15 Sep 2008 13:08:53 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 73314 invoked by uid 99); 15 Sep 2008 13:08:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 06:08:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 209.85.217.19 as permitted sender) Received: from [209.85.217.19] (HELO mail-gx0-f19.google.com) (209.85.217.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 13:07:53 +0000 Received: by gxk12 with SMTP id 12so16594464gxk.12 for ; Mon, 15 Sep 2008 06:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=URmCNwjSHAob77MA4MJW7BBPs7Tm5Xdf0+2xp0PgvO0=; b=o9fj1nUJ8not+ud5ZiMwAyyLfMlgxGP6H7dGA+oXgj5bX39BZ4xGoHTICaOnKncq/B 5Uj43QtBuFKppYfKNTjBkxN9gF7Mfphp0MvGLOB+hdgXw9k4RIhtthkSSJhtaT6DaIBm VP5VQk+Gn+/a6uv0zNuf5cspX2WtyM5YYfebg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=NdZrRoJ5tDnJql5JQPWpA9XiiuEjEc47V2/CNGVoHxqui/tLhC0bndDZ9WI1qIxBx4 jpC6HcIQuc+WC9/CwBr5Zy4vMhi2Lqb7t5AVex4tcMgp7KE/5+HV5IoYCurZ4S9bOLSs aMSySMyyr6gCy47gtQum0Gkmsp0vyON65HgeQ= Received: by 10.142.188.4 with SMTP id l4mr2696544wff.151.1221484044696; Mon, 15 Sep 2008 06:07:24 -0700 (PDT) Received: by 10.142.49.15 with HTTP; Mon, 15 Sep 2008 06:07:24 -0700 (PDT) Message-ID: Date: Mon, 15 Sep 2008 09:07:24 -0400 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org, michele@sciabarra.com Subject: Re: A modest proposal for an erlang api for couchdb, v2 In-Reply-To: <48CE39C3.1030405@eprometeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48CE39C3.1030405@eprometeus.com> X-Google-Sender-Auth: 58f20cfd0604cfc8 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Sep 15, 2008 at 6:32 AM, Michele Sciabarra wrote: > But I realized that the internals of CouchDb are, of course, internals. Too > low level to be useful. > So I started to think about an API to be exposed that is simple enough to be > used. > > To do so, I decided to start from the exposed layer, that is implemented in > the couch_http.erl file. > > My idea was to write a couch_api.erl module that is doing essentially the > same things that couch_httpd.erl does, only translated in an Erlang-ish API. > Another approach worth considering, is if the API that couch_httpd.erl uses to access the internals, could be made into a public API. Maybe it's just six of one, half-dozen of the other, but making couch_httpd use a public API would mean we'd be dog-fooding, so it'd be assured to stay up to date and all that. -- Chris Anderson http://jchris.mfdz.com