Implement atomic_update for SQL.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 12 Feb 2012 21:58:08 +0000 (22:58 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 4 Mar 2012 20:05:06 +0000 (21:05 +0100)
commit325ca444d1c75aa353b5855423aa35ee75ed9f19
treef9b57450ae3f7d1a1e7d97cabf1708022217b04d
parent82cd968347988f61ac52c2100d1dc47750decead
Implement atomic_update for SQL.

On sqlalchemy most updates are atomic enough for most use
cases. Anyway, here is an atomic_update that is compatible
to the mongo version.
mediagoblin/db/sql/util.py
mediagoblin/db/util.py