diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-06 18:05:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-06 18:05:19 +0200 |
commit | ce696c26d2c9dd5a5813fd865082ab19ac49bcfa (patch) | |
tree | c44331b2a6e6fa1d9d518ddff63e711ce5d308c4 /odb/mysql/context.hxx | |
parent | 727a83dc82fa094aa91630d165d230a9a2dabe60 (diff) |
Add support for container persistence
Diffstat (limited to 'odb/mysql/context.hxx')
-rw-r--r-- | odb/mysql/context.hxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/odb/mysql/context.hxx b/odb/mysql/context.hxx index 40facae..9a6beec 100644 --- a/odb/mysql/context.hxx +++ b/odb/mysql/context.hxx @@ -86,25 +86,32 @@ namespace mysql bool grow (semantics::class_&); + // The same for a member's value type. + // + bool + grow (semantics::data_member&, semantics::type&, string const& key_prefix); + // // public: sql_type const& - db_type (semantics::data_member&); + db_type (semantics::data_member&, string const& key_prefix = string ()); private: typedef ::context base_context; struct data: base_context::data { + virtual string + column_type_impl (semantics::type&, + string const& type, + semantics::context*) const; }; private: data* data_; public: - virtual string - column_type_impl (semantics::data_member&) const; public: context (std::ostream&, semantics::unit&, options_type const&); |