diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-06 14:42:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-06 14:42:43 +0200 |
commit | 61663c06d351a7c5cb868840d3c94cb95335b2d6 (patch) | |
tree | 0e1ec7d8509dc39d7ac9618dfe126186c07cd347 /odb/relational/header.hxx | |
parent | 428558c89850fe8c79b9c89a943bd996912d12f5 (diff) |
Add support for object pragma
This pragma is used to specify objects in a view declaration.
Diffstat (limited to 'odb/relational/header.hxx')
-rw-r--r-- | odb/relational/header.hxx | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index f7e1058..30cb01e 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -1133,17 +1133,26 @@ namespace relational // query_type // - os << "typedef query_base_type query_type;" - << endl; - - /* - os << "struct query_type: query_base_type, query_columns" - << "{" - << "query_type ();" - << "query_type (const std::string&);" - << "query_type (const query_base_type&);" - << "};"; - */ + if (c.count ("objects")) + { + /* + typedef std::vector<semantics::class_*> objects; + + objects const& objs (c.get<objects> ("objects")); + */ + + /* + os << "struct query_type: query_base_type, query_columns" + << "{" + << "query_type ();" + << "query_type (const std::string&);" + << "query_type (const query_base_type&);" + << "};"; + */ + } + else + os << "typedef query_base_type query_type;" + << endl; // // Functions. |