google app engine - How to do UPDATE and DELETE on GAE db using python? -


i have beginner question.

i reading gae reference , saw "select" operation. need counterparts of sql's update , delete figure this:

delete: .filter table item call .remove() on it.
update: .filter table item modify , insert .put(), call .remove() on original element.

is proper , efficient way of doing these operations?

update same put when element exist. gae rewrite entity when .put()

example update mymodel = mymodel.get_by_key_name('mykey') mymodel.x = 123 mymodel.put() 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -