summaryrefslogtreecommitdiff
path: root/odb/relational/generate.hxx
AgeCommit message (Collapse)AuthorFilesLines
2011-10-24Generate database schema from database model instead of C++ modelBoris Kolpackov1-0/+10
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.
2011-03-21Split MySQL code generator into common and db-specific partsBoris Kolpackov1-0/+36
The common part (in relational/) still has some MySQL-specific parts. Also, add the notion of the current context which is used to avoid explicitly passing the context object to every generator's c-tor.