diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-21 13:11:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-21 13:13:50 +0200 |
commit | 9ad0acf37561de9bf359a561faed53de17c2ca3b (patch) | |
tree | 4b38b866a4917992a6e22cde9f22539e08d4ed9e /odb/option-types.hxx | |
parent | d01c8e22abea35477f21488613f2474a2e4e8fc7 (diff) |
Add dynamic multi-database query support
Diffstat (limited to 'odb/option-types.hxx')
-rw-r--r-- | odb/option-types.hxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/odb/option-types.hxx b/odb/option-types.hxx index b65589c..09be4ee 100644 --- a/odb/option-types.hxx +++ b/odb/option-types.hxx @@ -7,8 +7,10 @@ #include <map> #include <iosfwd> +#include <string> #include <cassert> + #include <odb/semantics/relational/name.hxx> using semantics::relational::qname; @@ -24,7 +26,7 @@ struct cxx_version cxx_version (value v = value (0)) : v_ (v) {} operator value () const {return v_;} - const char* + std::string string () const; private: @@ -53,12 +55,12 @@ struct database database (value v = value (0)) : v_ (v) {} operator value () const {return v_;} - const char* + std::string string () const; // Full name (e.g., PostgreSQL). // - const char* + std::string name () const; private: @@ -105,7 +107,7 @@ struct multi_database multi_database (value v = disabled) : v_ (v) {} operator value () const {return v_;} - const char* + std::string string () const; private: @@ -134,7 +136,7 @@ struct schema_format schema_format (value v = value (0)) : v_ (v) {} operator value () const {return v_;} - const char* + std::string string () const; private: |