aboutsummaryrefslogtreecommitdiff
path: root/odb/option-types.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-12-12 11:26:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-12-12 11:26:44 +0200
commita5f24411433aeb61ad015129354a664820affab0 (patch)
tree25fb5a97c0c070b78c9318f1da3dcbc484785918 /odb/option-types.hxx
parent2ad2e5500dd075db421a516502c9e522fdc34ee0 (diff)
Add support for SQL name transformations
Diffstat (limited to 'odb/option-types.hxx')
-rw-r--r--odb/option-types.hxx20
1 files changed, 20 insertions, 0 deletions
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)