diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-30 13:30:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-30 13:30:16 +0200 |
commit | 6aab653d6975b92c11eef1b56f025c11e6d8e612 (patch) | |
tree | f2e2681836da00c8d77d829ff3fb9f2ace71a607 /odb/mysql/common.hxx | |
parent | 8e220faa86451ad4df72001282bb3ae4c8dcd1fb (diff) |
Add support for the rest of database operations
Diffstat (limited to 'odb/mysql/common.hxx')
-rw-r--r-- | odb/mysql/common.hxx | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/odb/mysql/common.hxx b/odb/mysql/common.hxx index cd4d27f..5017158 100644 --- a/odb/mysql/common.hxx +++ b/odb/mysql/common.hxx @@ -11,6 +11,110 @@ namespace mysql { + struct member_base: traversal::data_member, context + { + member_base (context& c, bool id) + : context (c), id_ (id) + { + } + + virtual void + traverse (type& m); + + virtual void + pre (type&) + { + } + + virtual void + post (type&) + { + } + + virtual void + traverse_integer (type&, sql_type const&) + { + } + + virtual void + traverse_float (type&, sql_type const&) + { + } + + virtual void + traverse_decimal (type&, sql_type const&) + { + } + + virtual void + traverse_date_time (type&, sql_type const&) + { + } + + virtual void + traverse_short_string (type&, sql_type const&) + { + } + + virtual void + traverse_long_string (type&, sql_type const&) + { + } + + virtual void + traverse_bit (type&, sql_type const&) + { + } + + virtual void + traverse_enum (type&, sql_type const&) + { + } + + virtual void + traverse_set (type&, sql_type const&) + { + } + + protected: + bool id_; + string var; + }; + + struct has_grow_member: member_base + { + has_grow_member (context& c) + : member_base (c, false), r_ (false) + { + } + + bool + result () + { + return r_; + } + + virtual void + traverse_long_string (type&, sql_type const& t) + { + r_ = true; + } + + virtual void + traverse_enum (type&, sql_type const&) + { + r_ = true; + } + + virtual void + traverse_set (type&, sql_type const&) + { + r_ = true; + } + + private: + bool r_; + }; } #endif // ODB_MYSQL_COMMON_HXX |