summaryrefslogtreecommitdiff
path: root/odb/relational/generate.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-20 13:09:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:44 +0200
commitc67c06030fb1ac622c96211bffc054a85efe0aa8 (patch)
tree07a85e0c3b0f3a22b58405ff5582870f2b09f424 /odb/relational/generate.hxx
parent3b457daf6b252ef31ec0611e7375aa4badd8e63d (diff)
Add support for maintaining log of database model changes
Diffstat (limited to 'odb/relational/generate.hxx')
-rw-r--r--odb/relational/generate.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/relational/generate.hxx b/odb/relational/generate.hxx
index 401c93c..e5dc376 100644
--- a/odb/relational/generate.hxx
+++ b/odb/relational/generate.hxx
@@ -5,9 +5,12 @@
#ifndef ODB_RELATIONAL_GENERATE_HXX
#define ODB_RELATIONAL_GENERATE_HXX
+#include <string>
#include <cutl/shared-ptr.hxx>
+#include <odb/context.hxx>
#include <odb/semantics/relational/model.hxx>
+#include <odb/semantics/relational/changelog.hxx>
namespace relational
{
@@ -41,6 +44,17 @@ namespace relational
generate ();
}
+ namespace changelog
+ {
+ // Returns NULL if the changelog is unchanged.
+ //
+ cutl::shared_ptr<semantics::relational::changelog>
+ generate (semantics::relational::model&,
+ model_version const&,
+ semantics::relational::changelog* old, // Can be NULL.
+ std::string const& name);
+ }
+
namespace schema
{
void