开发者

Wiping the datastore?

开发者 https://www.devze.com 2023-01-06 00:09 出处:网络
I\'m working on an app engine project (java). I\'m using the jdo interface. I haven\'t pushed the application yet (just running at localhost). Is there a way I can totally wipe my datastore after I pu

I'm working on an app engine project (java). I'm using the jdo interface. I haven't pushed the application yet (just running at localhost). Is there a way I can totally wipe my datastore after I publish? In eclipse, when working locally, I can just wipe the datastore by deleting the local file:

appengine-generated/local_db.bin

any facility like that once published?

I'm using jdo right now, but I might switch to objectify or slim3, and would want a convenient way to wipe my datastore should I switch over, or otherwise make heavy modificatio开发者_如何学Pythonns to my classes.

Otherwise it seems like I have to setup methods to delete instances myself, right?

Thanks


you can delete it from admin console if there are not much enitty stored in your app. go to http://appengine.google.com and manually do it. easy for less than 2000-5000 entity.


This question addressed the same topic. There is no one command way to drop an entire datastore's worth of data. The only suggestion I have beyond those give in that previous question, would be to try out the new Mapper functionality, which would make it easy to map over an entire set of entities, deleting them as you went.

0

精彩评论

暂无评论...
验证码 换一张
取 消