summaryrefslogtreecommitdiff
path: root/odb/relational/mysql
AgeCommit message (Collapse)AuthorFilesLines
2011-08-19Rework query machinery not to use '_' as primary table aliasBoris Kolpackov1-2/+2
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself.
2011-07-22Add pragma for setting type's or member's default valueBoris Kolpackov1-0/+79
New pragma: default. New test: default.
2011-07-22Cosmetic changeBoris Kolpackov1-1/+1
2011-07-22Parse and store MySQL ENUM enumerator stringsBoris Kolpackov2-4/+31
2011-07-22Use quote_string() to quote enumeratorsBoris Kolpackov1-3/+1
2011-07-22Cosmetic changesBoris Kolpackov1-2/+2
2011-07-19New design for NULL semanticsBoris Kolpackov4-15/+22
Now, instead of being specified as part of the SQL type with the type pragma, there are separate null and not_null pragmas. The not_null pragma was used to control NULL-ness of object pointers. Now the two pragmas are used consistently for object pointers and simple values (and in the future will work for composite values and containers).
2011-06-30Reset range if we have two values in MySQL FLOAT parsingBoris Kolpackov1-0/+8
2011-06-30Take into account precision in MySQL FLOAT type parsingBoris Kolpackov1-1/+16
2011-04-25Add support for mapping to database types based on type aliasesBoris Kolpackov2-4/+7
This allows us to, for example, always map size_t to 64-bit type. The current implementation does not work for containers. It is not clear whether it will be possible to make it work using the GCC AST.
2011-04-25Add support for abstract object typesBoris Kolpackov1-1/+1
2011-04-22Initial support for non-polymorphic inheritanceBoris Kolpackov1-2/+2
Every class gets a separate table. New test: common/inheritance.
2011-04-19Map only continuous, zero-based enums to MySQL ENUMBoris Kolpackov1-14/+39
The others map to INT.
2011-04-19Implement automatic mapping for C++ enumsBoris Kolpackov5-24/+167
2011-04-19Get rid of image type argument in value_traitsBoris Kolpackov2-23/+0
2011-03-24Generalization work for MySQL and SQLite supportBoris Kolpackov3-3/+17
2011-03-21Remove unnecessary codeBoris Kolpackov1-5/+5
2011-03-21Add support for SQLite type system, adjust code generatorsBoris Kolpackov1-3/+3
2011-03-21Create indexes in separate SQL statementsBoris Kolpackov1-1/+1
This is more vendor-neutral.
2011-03-21Separate auto increment from database typeBoris Kolpackov3-21/+16
2011-03-21Cache current context in static variableBoris Kolpackov2-12/+28
2011-03-21Cosmetic changes (function renames)Boris Kolpackov3-9/+12
2011-03-21Cosmetic changesBoris Kolpackov3-48/+48
2011-03-21Move to new "virtual functions in context" modelBoris Kolpackov2-12/+12
2011-03-21Split MySQL code generator into common and db-specific partsBoris Kolpackov7-0/+2561
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.