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/exceptions.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/exceptions.hxx') diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index 698baee..5f48717 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -92,6 +92,12 @@ namespace odb what () const throw (); }; + struct LIBODB_EXPORT object_changed: exception + { + virtual const char* + what () const throw (); + }; + struct LIBODB_EXPORT result_not_cached: exception { virtual const char* @@ -140,6 +146,7 @@ namespace odb using odb::timeout; using odb::object_not_persistent; using odb::object_already_persistent; + using odb::object_changed; using odb::result_not_cached; using odb::database_exception; -- cgit v1.1