Improve storage update api

Issue #1 resolved
Former user created an issue

Allow for direct update without previous fetching so that this code example

with storage() as db:
    record = db.fetch(Todo, id, vsn)
    record.text = text
    record.done = done
    db.update(record)

can be simplified as follow:

with storage() as db:
    record = db.update(Todo, id, vsn, text = text, done = done)

Comments (2)

  1. Log in to comment