aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-02 11:04:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-02 11:04:55 +0200
commit4ff8f46ff2484c0882a1b0873b08e65e2349c849 (patch)
tree8d7f9d920af0ba7b3a653366b6dbf99d79484c61
parentb9eff63278d5bb8d59a40f7b837cff4843eaae05 (diff)
Add result_iterator::id() function that returns id without loading object
-rw-r--r--odb/object-result.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/object-result.hxx b/odb/object-result.hxx
index 8b0b502..9895e91 100644
--- a/odb/object-result.hxx
+++ b/odb/object-result.hxx
@@ -281,6 +281,12 @@ namespace odb
void
load (object_type&);
+ id_type
+ id ()
+ {
+ return res_->load_id ();
+ }
+
protected:
result_impl_type* res_;
};