From 2e258ea80deae21b478c6aa8deae50bd24194c11 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Sep 2013 08:41:17 +0200 Subject: Return number of calls made from migrate_data() Can be useful for debugging/tracing. --- odb/schema-catalog.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/schema-catalog.hxx') 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_CXX11 #include +#include // std::size_t #ifdef ODB_CXX11 # include // 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 = ""); -- cgit v1.1