From 0745f84e2d5c7133f6ee6608487089d69d7ad519 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 6 May 2013 12:05:39 +0200 Subject: Add support for object sections Sections are an optimization mechanism that allows the partitioning of data members of a persistent class into groups that can be separately loaded and/or updated. --- odb/pgsql/database.ixx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'odb/pgsql/database.ixx') diff --git a/odb/pgsql/database.ixx b/odb/pgsql/database.ixx index afc3ce7..809e4d4 100644 --- a/odb/pgsql/database.ixx +++ b/odb/pgsql/database.ixx @@ -108,6 +108,13 @@ namespace odb } template + inline void database:: + load (T& obj, section& s) + { + return load_ (obj, s); + } + + template inline typename object_traits::pointer_type database:: find (const typename object_traits::id_type& id) { @@ -249,6 +256,13 @@ namespace odb template inline void database:: + update (const T& obj, const section& s) + { + update_ (obj, s); + } + + template + inline void database:: erase (const typename object_traits::id_type& id) { return erase_ (id); -- cgit v1.1