diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
commit | 4eb0df751704345ec8744fe012e64064d5cdb754 (patch) | |
tree | 8043a94c33c5938073acce7137560a765efcaf1f /odb/relational/schema.hxx | |
parent | 2731c14f6b16b8b40eb9b1c9061e6e296f3d49f8 (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.hxx | 4 |
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; |