diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-26 17:18:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-26 17:18:12 +0200 |
commit | 6692558ba588c76f5e61eb7ed9a1040d36cb9ed7 (patch) | |
tree | 6f7a29e911713829583bc573e938591383f8486c /odb/relational/model.hxx | |
parent | 84cb9f184bc24ef7151ab9931b46311b03219b14 (diff) |
Add support for extra database info in primary key
Use that to handle Oracle sequence name and SQLite lax auto ids.
Diffstat (limited to 'odb/relational/model.hxx')
-rw-r--r-- | odb/relational/model.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index 6552048..af88eb5 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -187,6 +187,11 @@ namespace relational } virtual void + primary_key (sema_rel::primary_key&) + { + } + + virtual void constraints (semantics::data_member& m, string const& /* name */, string const& /* id */, @@ -211,6 +216,7 @@ namespace relational // name. // model_.new_edge<sema_rel::unames> (table_, *pkey_, ""); + primary_key (*pkey_); } model_.new_edge<sema_rel::contains> (*pkey_, c); |