Add support for RowVersion columns for optimistic locking

The row version is necessary to implement optimistic locking at the
application level, where an entity is read and then later updated.
If the row version differs in the data store we know that changes
were made.

Signed-off-by: Shawn O. Pearce <sop@google.com>
6 files changed