Message from discussion
Feedback on data exporter design?
MIME-Version: 1.0
Message-ID: <22d382b2-c486-4e8d-86d7-1bc9251f1d84@w4g2000prd.googlegroups.com>
Date: Mon, 14 Apr 2008 23:19:00 -0700 (PDT)
Received: by 10.151.102.16 with SMTP id e16mr271774ybm.24.1208240341032; Mon,
14 Apr 2008 23:19:01 -0700 (PDT)
In-Reply-To: <021de6d5-c0a2-4bf9-b7fa-513f50134208@f36g2000hsa.googlegroups.com>
X-IP: 24.143.85.194
References: <a1076511-cd21-4ec8-8aa0-bd9b807adf72@y18g2000pre.googlegroups.com>
<021de6d5-c0a2-4bf9-b7fa-513f50134208@f36g2000hsa.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5)
Gecko/2008032619 Firefox/3.0b5,gzip(gfe),gzip(gfe)
Subject: Re: Feedback on data exporter design?
From: Aaron Krill <aa...@krillr.com>
To: Google App Engine <google-appengine@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I concur with Jared. XML and JSON are my preferred methods.
What really needs to be done is there to be added a toJson function,
to DataStore models. Then when you want to dump an entire DB you give
the option of XML and JSON, and on your side you simply execute a
query where you grab all objects from all models and export them one
by one.
I would like a format like this for JSON:
{"model_name": "MyModel", "properties": {"myproperty": {"type":
"UserProperty", "options": {"someoption": "value"}}}, "objects":
{"id": 0, "myproperty": "aa...@krillr.com"}}