diff options
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) { |