diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-13 13:44:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-13 13:44:00 +0200 |
commit | ead623bfdd2004988f13d7cade7deaea1b71f7e8 (patch) | |
tree | 084c13c08b362d5bc511683316cb51e2eb379e6a /odb/mysql/common.hxx | |
parent | 8100d903ef92d2ab3c789317fd1f187089ece8a7 (diff) |
Add support for language-embedded queries
Diffstat (limited to 'odb/mysql/common.hxx')
-rw-r--r-- | odb/mysql/common.hxx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/odb/mysql/common.hxx b/odb/mysql/common.hxx index 5017158..452a0a6 100644 --- a/odb/mysql/common.hxx +++ b/odb/mysql/common.hxx @@ -115,6 +115,50 @@ namespace mysql private: bool r_; }; + + struct query_column: member_base + { + query_column (context&); + query_column (context&, semantics::class_&); + + virtual void + pre (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&); + + private: + string type_; + string name_; + string scope_; + string table_; + string column_; + bool decl_; + }; } #endif // ODB_MYSQL_COMMON_HXX |