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
Post a Comment