diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-21 08:16:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-21 08:16:49 +0200 |
commit | 13b215e2206380d856137dedf522c9141a58e9e0 (patch) | |
tree | eaaa8f9e95add9ef5d24160ad7cd2efd91472c01 /odb/database.ixx | |
parent | 6b51de56026cf73f0f0ed8071e5e4918bc1999f9 (diff) |
Add support for stopping after a failed batch
Diffstat (limited to 'odb/database.ixx')
-rw-r--r-- | odb/database.ixx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/odb/database.ixx b/odb/database.ixx index 7c4b322..43dae6a 100644 --- a/odb/database.ixx +++ b/odb/database.ixx @@ -237,9 +237,9 @@ namespace odb template <typename I> inline void database:: - persist (I b, I e) + persist (I b, I e, bool cont) { - persist_<I, id_common> (b, e); + persist_<I, id_common> (b, e, cont); } template <typename T> @@ -405,9 +405,9 @@ namespace odb template <typename I> inline void database:: - update (I b, I e) + update (I b, I e, bool cont) { - update_<I, id_common> (b, e); + update_<I, id_common> (b, e, cont); } template <typename T> @@ -501,16 +501,16 @@ namespace odb template <typename T, typename I> inline void database:: - erase (I idb, I ide) + erase (I idb, I ide, bool cont) { - erase_id_<I, T, id_common> (idb, ide); + erase_id_<I, T, id_common> (idb, ide, cont); } template <typename I> inline void database:: - erase (I ob, I oe) + erase (I ob, I oe, bool cont) { - erase_object_<I, id_common> (ob, oe); + erase_object_<I, id_common> (ob, oe, cont); } template <typename T> @@ -722,7 +722,7 @@ namespace odb // template <typename I, database_id DB> inline void database:: - persist_ (I b, I e) + persist_ (I b, I e, bool cont) { // Sun CC with non-standard STL does not have iterator_traits. // @@ -737,7 +737,7 @@ namespace odb typedef object_pointer_traits<value_type> opt; persist_<I, typename opt::object_type, id_common> ( - b, e, typename opt::result_type ()); + b, e, cont, typename opt::result_type ()); } template <typename T, database_id DB> |