couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Stawicki <pawelstawi...@gmail.com>
Subject Re: couchdb sub queries ?
Date Mon, 17 May 2010 18:52:32 GMT
I don't know, you can try, but I don't think it works. AFAIK you can
include only files.
--
Paweł Stawicki
http://pawelstawicki.blogspot.com
http://szczecin.jug.pl




On Mon, May 17, 2010 at 20:49, c.Kleinhuis <ck@digitalgott.de> wrote:
> 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