From user-return-12784-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sat Sep 18 14:22:35 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 91204 invoked from network); 18 Sep 2010 14:22:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Sep 2010 14:22:34 -0000 Received: (qmail 8680 invoked by uid 500); 18 Sep 2010 14:22:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8347 invoked by uid 500); 18 Sep 2010 14:22:31 -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 8339 invoked by uid 99); 18 Sep 2010 14:22:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 14:22:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ido.ran@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 14:22:25 +0000 Received: by iwn8 with SMTP id 8so4281116iwn.11 for ; Sat, 18 Sep 2010 07:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=sNv7hERVV2s4GuSrWzD3RBi1KXPuegiZWD0P/Rtyr10=; b=jbW4vPonf5VHzZqy2ILQLSYWN56L6IHYgR7QCjI8V8RuyMgQVhVJ2fkBRDS5+ppXoG Q6lyinda6PnNaJvsK21VfFNcgQ5vio8GIbXUOFh4MAdH5M3yiV6eU/aGsyuyWirz+A3a Kgqzx4jqGLUyr7iIIsLrAcy86fv7Ttb09+WQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=UY/RVYE8DpGJzAAGak2ZUC+uw0DWfwI/M9DMmx0l4f5CElmUx6Wi3t9qgMEcFZg6/N BO4/QY8fqzEJHejLldcq0zX3rjJqntbJoCHaTVKTTh+61mayu430WNc+6Vaubp2joRXn ZnHNC0Jowvnyvs88ojw1ME1rbNwI0CTG+JBfA= Received: by 10.231.177.40 with SMTP id bg40mr5769895ibb.150.1284819725285; Sat, 18 Sep 2010 07:22:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.168.14 with HTTP; Sat, 18 Sep 2010 07:21:45 -0700 (PDT) In-Reply-To: References: From: Ido Ran Date: Sat, 18 Sep 2010 16:21:45 +0200 Message-ID: Subject: Re: $.couch.app.saveDoc To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016369c8f54537964049089678c --0016369c8f54537964049089678c Content-Type: text/plain; charset=UTF-8 It's not exactly about this problem but where is the code of $.couch.db and $.couch.login is actually at? I've looked in jquery.couch.app.js and jquery.couch.app.util.js but there is nothing there. Thank you, Ido On Sat, Sep 18, 2010 at 4:08 PM, Chris Anderson wrote: > On Sat, Sep 18, 2010 at 5:11 AM, Tyler Gillies wrote: > > How do i save a doc with a custom doc_id using the $.couch object? > > > > > So, when dealing with $.couch.app, keep in mind that it is not a > CouchDB client, it is just a wrapper script around jquery.couch.js, so > the answer you are looking for is in $.couch.db(foo).saveDoc() > > Just save an object like > > { > _id : "myid", > ... > } > > Chris > > > -- > > http://www.readwriteweb.com/about#tyler > > > > My website: http://list.pdxbrain.com > > > > > > -- > Chris Anderson > http://jchrisa.net > http://couch.io > --0016369c8f54537964049089678c--