summaryrefslogtreecommitdiff
path: root/odb/relational/common.cxx
AgeCommit message (Collapse)AuthorFilesLines
2011-10-21Add support for const data membersBoris Kolpackov1-4/+7
Const data members are automatically treated as readonly. New test: const-member.
2011-09-20Change query syntax to use . for composite and -> for object pointer accessBoris Kolpackov1-43/+107
Also make non-inverse query columns act as both an object pointer and a normal column. The latter allows us to use natural expressions such as query<employee>::employer.is_null ().
2011-09-09New templated query_columns architectureBoris Kolpackov1-102/+151
We also now use the correct separate "role"-base join approach instead of having a single merged join for each table.
2011-08-31Cosmetic changes and cleanupsBoris Kolpackov1-7/+7
Rename some functions to have consistent names. Add object() predicate.
2011-08-19Rework query machinery not to use '_' as primary table aliasBoris Kolpackov1-5/+10
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself.
2011-04-22Initial support for non-polymorphic inheritanceBoris Kolpackov1-6/+47
Every class gets a separate table. New test: common/inheritance.
2011-04-19Get rid of image type argument in value_traitsBoris Kolpackov1-2/+0
2011-04-05Cosmetic changesBoris Kolpackov1-2/+2
2011-03-25Further generalization work for SQLite supportBoris Kolpackov1-3/+3
2011-03-24Generalization work for MySQL and SQLite supportBoris Kolpackov1-4/+4
2011-03-21Fix bug in database enum parsingBoris Kolpackov1-4/+2
2011-03-21Cosmetic changesBoris Kolpackov1-4/+4
2011-03-21Split MySQL code generator into common and db-specific partsBoris Kolpackov1-0/+178
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.