From 5e17d609ae59dc07514e2af945db05be05db968c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 13 Aug 2010 15:34:58 +0200 Subject: Do not generate query support code by default Add the --generate-query option to explicitly request this functionality. --- odb/mysql/inline.cxx | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'odb/mysql/inline.cxx') diff --git a/odb/mysql/inline.cxx b/odb/mysql/inline.cxx index 0924077..1bb5fef 100644 --- a/odb/mysql/inline.cxx +++ b/odb/mysql/inline.cxx @@ -47,25 +47,28 @@ namespace mysql // query_type // - os << "inline" << endl - << traits << "::query_type::" << endl - << "query_type ()" - << "{" - << "}"; + if (options.generate_query ()) + { + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type ()" + << "{" + << "}"; - 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 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)" - << "{" - << "}"; + os << "inline" << endl + << traits << "::query_type::" << endl + << "query_type (const query_base_type& q)" << endl + << " : query_base_type (q)" + << "{" + << "}"; + } // id () // -- cgit v1.1