summaryrefslogtreecommitdiff
path: root/odb/relational/context.hxx
AgeCommit message (Collapse)AuthorFilesLines
2011-10-24Generate database schema from database model instead of C++ modelBoris Kolpackov1-4/+9
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-10-21Split 'in' binding into insert/update pair; rename 'out' to selectBoris Kolpackov1-0/+8
Also add the initial infrastructure for the readonly members support. Right now the split insert/update bindings allows us to avoid sending object id in UPDATE statements. It will also allows us to support readonly members.
2011-10-21Rename relational::context::use_as to relational::context::need_alias_asConstantin Michael1-2/+2
2011-10-21Add a context flag indicating whether AS SQL keyword should be used for aliasesConstantin Michael1-0/+4
2011-10-21Add flag to context indicating whether to generate grow codeConstantin Michael1-0/+2
2011-09-16Support for views; integrated partBoris Kolpackov1-0/+12
2011-07-22Add support for SQL string quotingBoris Kolpackov1-0/+14
2011-03-24Generalization work for MySQL and SQLite supportBoris Kolpackov1-0/+35
2011-03-21Cache current context in static variableBoris Kolpackov1-9/+14
2011-03-21Split MySQL code generator into common and db-specific partsBoris Kolpackov1-0/+81
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.