From 4eb0df751704345ec8744fe012e64064d5cdb754 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Oct 2012 16:09:08 +0200 Subject: 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. --- odb/relational/schema.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odb/relational/schema.hxx') 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; -- cgit v1.1