From 3b728e0a21245871db9f70ba15a00e45f9741698 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Sep 2011 12:18:38 +0200 Subject: New templated query_columns architecture We also now use the correct separate "role"-base join approach instead of having a single merged join for each table. --- odb/query.hxx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/odb/query.hxx b/odb/query.hxx index 780ae39..82fb411 100644 --- a/odb/query.hxx +++ b/odb/query.hxx @@ -12,6 +12,19 @@ namespace odb { + // + // + template + struct query_columns_base; + + template + struct query_columns; + + template + struct pointer_query_columns; + + // + // template ::kind> struct query_selector; @@ -20,12 +33,6 @@ namespace odb { typedef typename object_traits::query_base_type base_type; typedef typename object_traits::query_type type; - - static const char* - table_name () - { - return object_traits::table_name; - } }; template @@ -33,12 +40,6 @@ namespace odb { typedef typename view_traits::query_base_type base_type; typedef typename view_traits::query_type type; - - static const char* - table_name () - { - return ""; - } }; template ::base_type> -- cgit v1.1