summaryrefslogtreecommitdiff
path: root/odb/relational/schema.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:09:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:09:08 +0200
commit4eb0df751704345ec8744fe012e64064d5cdb754 (patch)
tree8043a94c33c5938073acce7137560a765efcaf1f /odb/relational/schema.hxx
parent2731c14f6b16b8b40eb9b1c9061e6e296f3d49f8 (diff)
Ground work for multi-database support
All generated code now includes database id. The database-specific database class interface has been updated to include all the database operations. The database-specific tests now use this interface.
Diffstat (limited to 'odb/relational/schema.hxx')
-rw-r--r--odb/relational/schema.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx
index 56857f3..a236fd5 100644
--- a/odb/relational/schema.hxx
+++ b/odb/relational/schema.hxx
@@ -864,7 +864,8 @@ namespace relational
++end; // Transform the range from [begin, end] to [begin, end).
string const& type (class_fq_name (c));
- string traits ("access::object_traits< " + type + " >");
+ string traits ("access::object_traits_impl< " + type + ", id_" +
+ db.string () + " >");
// create_schema ()
//
@@ -941,6 +942,7 @@ namespace relational
os << "static const schema_catalog_entry" << endl
<< "schema_catalog_entry_" << flat_name (type) << "_ (" << endl
+ << "id_" << db << "," << endl
<< strlit (options.schema_name ()) << "," << endl
<< "&" << traits << "::create_schema);"
<< endl;