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.cxx | |
parent | d01c8e22abea35477f21488613f2474a2e4e8fc7 (diff) |
Add dynamic multi-database query support
Diffstat (limited to 'odb/option-types.cxx')
-rw-r--r-- | odb/option-types.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/odb/option-types.cxx b/odb/option-types.cxx index 6fcd922..8efb061 100644 --- a/odb/option-types.cxx +++ b/odb/option-types.cxx @@ -2,7 +2,6 @@ // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC // license : GNU GPL v3; see accompanying LICENSE file -#include <string> #include <istream> #include <ostream> #include <algorithm> // std::lower_bound @@ -21,7 +20,7 @@ static const char* cxx_version_[] = "c++11" }; -const char* cxx_version:: +string cxx_version:: string () const { return cxx_version_[v_]; @@ -70,13 +69,13 @@ static const char* database_name_[] = "SQLite" }; -const char* database:: +string database:: string () const { return database_[v_]; } -const char* database:: +string database:: name () const { return database_name_[v_]; @@ -119,7 +118,7 @@ static const char* multi_database_[] = "disabled" }; -const char* multi_database:: +string multi_database:: string () const { return multi_database_[v_]; @@ -163,7 +162,7 @@ static const char* schema_format_[] = "sql" }; -const char* schema_format:: +string schema_format:: string () const { return schema_format_[v_]; |