diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-16 16:03:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-16 16:03:25 +0200 |
commit | b79567fbc72df23f870049652d5f254aba948bea (patch) | |
tree | 186168269cf249ce97be89fd02aab4c75e83574c /odb/relational/inline.hxx | |
parent | d780414989ef7e101cdaf269d4b01003d0721e6a (diff) |
Support for views; integrated part
Diffstat (limited to 'odb/relational/inline.hxx')
-rw-r--r-- | odb/relational/inline.hxx | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx index 1134df6..9abc86f 100644 --- a/odb/relational/inline.hxx +++ b/odb/relational/inline.hxx @@ -215,6 +215,20 @@ namespace relational os << "inline" << endl << traits << "::query_type::" << endl + << "query_type (bool v)" << endl + << " : query_base_type (v)" + << "{" + << "}"; + + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type (const char* q)" << endl + << " : query_base_type (q)" + << "{" + << "}"; + + os << "inline" << endl + << traits << "::query_type::" << endl << "query_type (const std::string& q)" << endl << " : query_base_type (q)" << "{" @@ -258,6 +272,45 @@ namespace relational view_extra (c); + // query_type + // + if (c.count ("objects")) + { + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type ()" + << "{" + << "}"; + + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type (bool v)" << endl + << " : query_base_type (v)" + << "{" + << "}"; + + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type (const char* q)" << endl + << " : query_base_type (q)" + << "{" + << "}"; + + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type (const std::string& q)" << endl + << " : query_base_type (q)" + << "{" + << "}"; + + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type (const query_base_type& q)" << endl + << " : query_base_type (q)" + << "{" + << "}"; + } + // callback () // os << "inline" << endl |