aboutsummaryrefslogtreecommitdiff
path: root/odb/schema-catalog.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-28 08:41:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-28 08:41:17 +0200
commit2e258ea80deae21b478c6aa8deae50bd24194c11 (patch)
treef67b51509a204ed3bf80db0be8a63f5e64d5f6f0 /odb/schema-catalog.hxx
parent4553b663da99e37b4b80251fdb8906ef8944a42e (diff)
Return number of calls made from migrate_data()
Can be useful for debugging/tracing.
Diffstat (limited to 'odb/schema-catalog.hxx')
-rw-r--r--odb/schema-catalog.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/schema-catalog.hxx b/odb/schema-catalog.hxx
index 5af7c48..a58a2dc 100644
--- a/odb/schema-catalog.hxx
+++ b/odb/schema-catalog.hxx
@@ -10,6 +10,7 @@
#include <odb/details/config.hxx> // ODB_CXX11
#include <string>
+#include <cstddef> // std::size_t
#ifdef ODB_CXX11
# include <functional> // std::function
@@ -63,9 +64,9 @@ namespace odb
//
public:
// If version is 0, then use the current version and also check whether
- // we are in migration.
+ // we are in migration. Returns the number of calls made.
//
- static void
+ static std::size_t
migrate_data (database&,
schema_version = 0,
const std::string& name = "");