diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-18 14:02:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-18 14:02:45 +0200 |
commit | 7c3e9f3ae4bb1a207fd2443456c3309e8b173ac8 (patch) | |
tree | 63c156e513a7793cf434e2aeb37e0175793c1ba4 /odb/mysql/container-statements.hxx | |
parent | f959f1fb57ba5607573625aecf8ff38e4de9d558 (diff) |
Version image types
Diffstat (limited to 'odb/mysql/container-statements.hxx')
-rw-r--r-- | odb/mysql/container-statements.hxx | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/odb/mysql/container-statements.hxx b/odb/mysql/container-statements.hxx index 4d23d5a..d3b2625 100644 --- a/odb/mysql/container-statements.hxx +++ b/odb/mysql/container-statements.hxx @@ -31,6 +31,7 @@ namespace odb public: typedef T traits; + typedef typename traits::id_image_type id_image_type; typedef typename traits::data_image_type data_image_type; typedef typename traits::cond_image_type cond_image_type; @@ -58,6 +59,20 @@ namespace odb return functions_; } + // Id image (external). + // + id_image_type& + id_image () + { + return *id_image_; + } + + void + id_image (id_image_type& i) + { + id_image_ = &i; + } + // Condition image. // cond_image_type& @@ -66,6 +81,30 @@ namespace odb return cond_image_; } + std::size_t + cond_image_version () const + { + return cond_image_version_; + } + + void + cond_image_version (std::size_t v) + { + cond_image_version_ = v; + } + + std::size_t + cond_id_image_version () const + { + return cond_id_image_version_; + } + + void + cond_id_image_version (std::size_t v) + { + cond_id_image_version_ = v; + } + binding& cond_image_binding () { @@ -80,6 +119,30 @@ namespace odb return data_image_; } + std::size_t + data_image_version () const + { + return data_image_version_; + } + + void + data_image_version (std::size_t v) + { + data_image_version_ = v; + } + + std::size_t + data_id_image_version () const + { + return data_id_image_version_; + } + + void + data_id_image_version (std::size_t v) + { + data_id_image_version_ = v; + } + binding& data_image_binding () { @@ -140,11 +203,17 @@ namespace odb connection_type& conn_; functions_type functions_; + id_image_type* id_image_; + cond_image_type cond_image_; + std::size_t cond_image_version_; + std::size_t cond_id_image_version_; binding cond_image_binding_; MYSQL_BIND cond_image_bind_[traits::cond_column_count]; data_image_type data_image_; + std::size_t data_image_version_; + std::size_t data_id_image_version_; binding data_image_binding_; MYSQL_BIND data_image_bind_[traits::data_column_count]; my_bool data_image_error_[traits::data_column_count]; |