From cc3979f34a886ae4c89d4e3e86a5b0db1669585f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Nov 2012 11:46:03 +0200 Subject: Move some of the preprocessing from relational to common --- odb/option-types.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'odb/option-types.cxx') 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) { -- cgit v1.1