From 37e1d992d234363ff9aef45555678b5ee7203a99 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Nov 2011 12:41:01 +0200 Subject: Implement support for optimistic concurrency New pragmas: optimistic, version. New test: optimistic. New database function: reload(). --- odb/database.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index 7e29ddf..8ccc642 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -66,6 +66,10 @@ namespace odb void load (const typename object_traits::id_type& id, T& object); + template + void + reload (T& object); + // Return NULL/false if not found. // template -- cgit v1.1