diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-21 11:02:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-22 17:56:59 +0200 |
commit | 0d61aca198f1a5a71a791b892ef55fe2947d7aa0 (patch) | |
tree | 3e7edb0df78928e619860540651d8d36b0443986 /odb/relational | |
parent | 5d8f5cc0e6d658ae1f74bdf977988bbe995701bb (diff) |
Add support for specifying extra column options
New pragmas: options, id_options, index_options, key_options, and
value_options.
Diffstat (limited to 'odb/relational')
-rw-r--r-- | odb/relational/schema.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx index 9d64276..b218c2b 100644 --- a/odb/relational/schema.hxx +++ b/odb/relational/schema.hxx @@ -193,6 +193,13 @@ namespace relational constraints (m); reference (m); + // If we have options, add them. + // + string const& o (column_options (m, prefix_)); + + if (!o.empty ()) + os << " " << o; + return true; } |