From ded152cfb675537ab4ce24f50d0e95cec5b83b18 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Aug 2014 09:37:06 +0200 Subject: Draft implementation for INSERT --- odb/database.hxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index 1f56b7f..3ddf914 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -33,6 +33,7 @@ #include #include #include +#include namespace odb { @@ -77,6 +78,12 @@ namespace odb typename object_traits::id_type persist (const typename object_traits::pointer_type& obj_ptr); + // Bulk persist. + // + template + void + persist (I begin, I end); + // Load an object. Throw object_not_persistent if not found. // template @@ -489,6 +496,18 @@ namespace odb typename object_traits::id_type persist_ (const typename object_traits::pointer_type&); + template + void + persist_ (I, I); + + template + void + persist_ (I, I, details::meta::no ptr); + + template + void + persist_ (I, I, details::meta::yes ptr); + template typename object_traits::pointer_type load_ (const typename object_traits::id_type&); -- cgit v1.1