incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "c.Kleinhuis" ...@digitalgott.de>
Subject Re: couchdb sub queries ?
Date Mon, 17 May 2010 18:49:08 GMT
can i include other views with the macro functions ?!
i mean, an include like
!json http://localhost/db/design/view/myview

would be cool :D

thx

> AFAIK subquery is not possible, but maybe !code or !json macro could
> solve your problem.
>
> !code imports code from external file, so that all the functions in
> this file are accessible for you,
> !json imports code into a variable
>
> More details here:
> http://books.couchdb.org/relax/design-documents/shows
>
> Regards
> --
> PaweĊ‚ Stawicki
> http://pawelstawicki.blogspot.com
> http://szczecin.jug.pl
>
>
>
>
> On Mon, May 17, 2010 at 17:25, Christian Kleinhuis <ck@digitalgott.de> wrote:
>   
>> Hello,
>>
>> i would like to implement some kind of dynamic object definition, for this
>> purpose i would like
>> to have documents of type e.g. "object_template" containing a list of
>> properties a object shall receive,
>> e.g. "name, email"
>>
>> and i would now like to create a dynamic edit form for creating and editing
>> those defined data types
>>
>> my only idea to make this is to use a sub query in the "views" definition
>> ... is that possible ?!
>>
>> thx in advance
>> ck
>>
>>
>>     


Mime
View raw message