[appengine-java] Re: How to upload primary key as an id instead of name

2010-06-30 Thread Matthew Blain
The 1.3.5 bulkloader client will allow you to specify a numeric key; you must use the Key constructor explicitly to do this, integers will still be converted into strings. On Jun 30, 12:12 am, MANISH DHIMAN wrote: > Hi All > When I upload data using CSV file on G A E. Primary key is stored > ther

[appengine-java] Re: How to upload primary key as an id instead of name

2010-07-12 Thread Pasha
Could you please post an example. Thank you in advance. On Jun 30, 1:18 pm, Matthew Blain wrote: > The 1.3.5 bulkloader client will allow you to specify a numeric key; > you must use the Key constructor explicitly to do this, integers will > still be converted into strings. > > On Jun 30, 12:12 a

[appengine-java] Re: How to upload primary key as an id instead of name

2010-07-13 Thread Matthew Blain
Sorry, this won't be available until 1.3.6. You should be able to do something like this: - property: __key__ external_name: CityId export_transform: datastore.Key.id import_transform: lambda value: datastore.Key.from_path('City', int(value)) --Matthew On Jul 10, 5:53 pm, Pasha wrote

[appengine-java] Re: How to upload primary key as an id instead of name

2010-07-22 Thread MANISH DHIMAN
Let me explain once again if I missed something earlier. I have an existing task management application & wants to shift it now to google app engine. While I tried porting my existing data into google app engine using BulkLoader 1.3.5 with csv file, all my IDs saved as string (not as long). Suppos

[appengine-java] Re: How to upload primary key as an id instead of name

2010-07-22 Thread Subhash
Hi Uberto, > Otherwise if all your existing ids are numeric you can change > bulkloader to create the id instead of name. How I can upload exiting data with id as numeric not with name as string. My .yaml file format is given below: transformers: - kind:User connector: csv connector_options

Re: [appengine-java] Re: How to upload primary key as an id instead of name

2010-07-13 Thread John Patterson
You can do this now using the RemoteDatastore Java utility http://code.google.com/p/remote-datastore/ For example, this code runs on your desktop and creates a single entity in your live datastore: // divert datastore operations to live application RemoteDatastore.install(); RemoteD

Re: [appengine-java] Re: How to upload primary key as an id instead of name

2010-07-22 Thread Uberto Barbini
On Thu, Jul 22, 2010 at 3:49 PM, MANISH DHIMAN wrote: > > Let me explain once again if I missed something earlier. I have an > existing task management application & wants to shift it now to google > app engine. While I tried porting my existing data into google app > engine using BulkLoader 1.3.5

Re: [appengine-java] Re: How to upload primary key as an id instead of name

2010-07-23 Thread John Patterson
I have used RemoteDatastore to upload and download data in bulk. You can set whatever id you want. http://code.google.com/p/remote-datastore/ On 23 Jul 2010, at 10:01, Subhash wrote: Hi Uberto, Otherwise if all your existing ids are numeric you can change bulkloader to create the id inste