aboutsummaryrefslogtreecommitdiff
path: root/odb/processor.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-24 16:32:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-24 16:32:51 +0200
commit08a47c70ad517b80b72914d47d547463f576bcd3 (patch)
tree8a6ab07cf05e8668ea3c91735dfe97e2a98f3f05 /odb/processor.cxx
parenta976183dc95a8b7a9bd7a308c3ea94f08982c426 (diff)
Generate database schema from database model instead of C++ model
We now first create the so-called database model from C++ model and then use that to generate the database schema. The new approach also adds more general support for primary/foreign keys, including multi- column keys. Finally, for MySQL we now generate out-of-line foreign key definitions. Because MySQL does not support deferred constraints checking, deferred foreign keys are written commented out, for documentation.
Diffstat (limited to 'odb/processor.cxx')
-rw-r--r--odb/processor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/processor.cxx b/odb/processor.cxx
index 4ace44b..2779957 100644
--- a/odb/processor.cxx
+++ b/odb/processor.cxx
@@ -21,7 +21,7 @@ process (options const& ops, semantics::unit& unit, semantics::path const&)
//
if (ops.database () != database::tracer)
{
- auto_ptr<context> ctx (create_context (cerr, unit, ops));
+ auto_ptr<context> ctx (create_context (cerr, unit, ops, 0));
relational::process ();
}
}