From b78b1510cdcd82b560cabda8c082aff8f0d3cc2d Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 14 Jun 2011 09:59:46 +0200 Subject: Add type hook point to relational schema generation --- odb/relational/schema.hxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx index 9e04b77..9d0c0d1 100644 --- a/odb/relational/schema.hxx +++ b/odb/relational/schema.hxx @@ -185,8 +185,9 @@ namespace relational if (!first) os << "," << endl; - os << " " << quote_id (name) << " " << column_type (m, prefix_); + os << " " << quote_id (name); + type (m); constraints (m); if (semantics::class_* c = object_pointer (member_type (m, prefix_))) @@ -199,6 +200,12 @@ namespace relational } virtual void + type (semantics::data_member& m) + { + os << " " << column_type (m, prefix_); + } + + virtual void constraints (semantics::data_member& m) { if (m.count ("id")) -- cgit v1.1