From a5f24411433aeb61ad015129354a664820affab0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Dec 2012 11:26:44 +0200 Subject: Add support for SQL name transformations --- odb/option-types.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'odb/option-types.hxx') diff --git a/odb/option-types.hxx b/odb/option-types.hxx index 09be4ee..0b6d47a 100644 --- a/odb/option-types.hxx +++ b/odb/option-types.hxx @@ -151,6 +151,26 @@ operator<< (std::ostream&, schema_format); // // +struct name_case +{ + enum value + { + upper, + lower + }; + + name_case (value v = value (0)) : v_ (v) {} + operator value () const {return v_;} + +private: + value v_; +}; + +std::istream& +operator>> (std::istream&, name_case&); + +// +// struct oracle_version { oracle_version (unsigned short major, unsigned short minor) -- cgit v1.1