incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Melo <andrew.m...@gmail.com>
Subject Re: Reserved words
Date Thu, 29 Oct 2009 21:16:06 GMT
On Thu, Oct 29, 2009 at 4:13 PM, Chris Stockton
<chrisstocktonaz@gmail.com> wrote:
>
> We intend on possibly naming document properties "#_*" would this
> cause future conflicts? Any recommendation for a "private" prefix for
> property names within documents? Documents may contain properties that
> belong to a user, so we are trying to avoid collisions (or is it best
> to separate user named properties within a object in a named property:
> i.e.: user_properties: {Field: "foo" ... Field10: "baz"}) ?
>

On things that users can supply, I would suggest nesting that within
another element in your document, then you don't have to worry about
munging any names they supply.

Best,
Andrew


> Regards,
>
> -Chris
>
> [1] http://wiki.apache.org/couchdb/Reserved_words
>

Mime
View raw message