aboutsummaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 862b74e..11a6713 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -726,6 +726,20 @@ public:
return m.count ("transient");
}
+ // Return the deletion version or 0 if not deleted.
+ //
+ static unsigned long long
+ deleted (semantics::class_& c)
+ {
+ return c.get<unsigned long long> ("deleted", 0);
+ }
+
+ static unsigned long long
+ deleted (semantics::data_member& m)
+ {
+ return m.get<unsigned long long> ("deleted", 0);
+ }
+
static bool
id (semantics::data_member& m)
{