diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-04 12:57:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-04 12:57:25 +0200 |
commit | 259a683ec2a4f777f605bdd527b9882c3a965ee3 (patch) | |
tree | a8ffb2ed0b71397ba2b4c5176fad1405eff4f153 /odb/pgsql/container-statements.hxx | |
parent | 3b9fabfc20089fe9e9279a287c1db5bb37a6d275 (diff) |
Container versioning support
Diffstat (limited to 'odb/pgsql/container-statements.hxx')
-rw-r--r-- | odb/pgsql/container-statements.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/pgsql/container-statements.hxx b/odb/pgsql/container-statements.hxx index d77eec9..3dcecf2 100644 --- a/odb/pgsql/container-statements.hxx +++ b/odb/pgsql/container-statements.hxx @@ -10,6 +10,7 @@ #include <cstddef> // std::size_t #include <odb/forward.hxx> +#include <odb/schema-version.hxx> #include <odb/traits.hxx> #include <odb/pgsql/version.hxx> @@ -61,6 +62,14 @@ namespace odb return functions_; } + // + // + const schema_version_migration& + version_migration () const {return *svm_;} + + void + version_migration (const schema_version_migration& svm) {svm_ = &svm;} + // Id image binding (external). // const binding& @@ -205,6 +214,7 @@ namespace odb const char* delete_text_; bool versioned_; + const schema_version_migration* svm_; details::shared_ptr<insert_statement_type> insert_; details::shared_ptr<select_statement_type> select_; |