diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-05 11:46:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-21 13:13:50 +0200 |
commit | cc3979f34a886ae4c89d4e3e86a5b0db1669585f (patch) | |
tree | a8273aecad04fae7109446e77da89acfec41d7f6 /odb/option-types.cxx | |
parent | cbec5ef49dca08975c1c894bb796d2744a2429a6 (diff) |
Move some of the preprocessing from relational to common
Diffstat (limited to 'odb/option-types.cxx')
-rw-r--r-- | odb/option-types.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/odb/option-types.cxx b/odb/option-types.cxx index c52935e..6fcd922 100644 --- a/odb/option-types.cxx +++ b/odb/option-types.cxx @@ -60,12 +60,28 @@ static const char* database_[] = "sqlite" }; +static const char* database_name_[] = +{ + "Common Interface", + "SQL Server", + "MySQL", + "Oracle", + "PostgreSQL", + "SQLite" +}; + const char* database:: string () const { return database_[v_]; } +const char* database:: +name () const +{ + return database_name_[v_]; +} + istream& operator>> (istream& is, database& db) { |