aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/section.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/section.hxx b/odb/section.hxx
index 93c5d66..c6f0da7 100644
--- a/odb/section.hxx
+++ b/odb/section.hxx
@@ -32,6 +32,15 @@ namespace odb
state_.restore = 0;
}
+ // Mark an unloaded section as loaded. This, for example, can be useful if
+ // you don't want to load the old data before overwriting it with update().
+ //
+ void
+ load ()
+ {
+ state_.loaded = 1;
+ }
+
// Change state.
//
bool