aboutsummaryrefslogtreecommitdiff
path: root/odb/generator.cxx
AgeCommit message (Collapse)AuthorFilesLines
2013-06-21Various bug fixes for dynamic multi-database support2.2.22.2Boris Kolpackov1-12/+14
2013-05-28Use correct stream objectBoris Kolpackov1-2/+2
2013-02-09Update copyright yearBoris Kolpackov1-1/+1
2012-12-03Make --export-symbol and --extern-symbole values database-prefixableBoris Kolpackov1-1/+1
2012-11-28Add support for DLL exporting of generated codeBoris Kolpackov1-1/+1
New options: --export-symbol, --extern-symbol.
2012-11-21Add dynamic multi-database query supportBoris Kolpackov1-2/+17
2012-11-21Add dynamic multi-database support excluding queryBoris Kolpackov1-5/+9
2012-10-29Add support for database prefixes in command line interfaceBoris Kolpackov1-91/+177
2012-10-25Static multi-database supportBoris Kolpackov1-24/+66
Add new options (--multi-database, --default-database). Generate common code to -odb.?xx files and database-specific to -odb-<db>.?xx.
2012-10-02Cosmetic changeBoris Kolpackov1-1/+1
2012-10-02Fix regression in include directive generationBoris Kolpackov1-1/+2
Make sure we remove the directory part.
2012-09-13Add --omit-drop and --omit-create optionsBoris Kolpackov1-73/+117
2012-09-13Add --sql-interlude and --sql-interlude-file optionsBoris Kolpackov1-14/+41
2012-09-12Implement --output-name, --generate-schema-only, and --at-once optionsBoris Kolpackov1-39/+81
2012-07-30Handle regex_format exception at top levelBoris Kolpackov1-6/+0
2012-07-16Fix code generation for circularly-dependant classes in separate headersBoris Kolpackov1-1/+3
New tests: common/circular/{single,multiple}.
2012-07-10Add support for custom database type mappingBoris Kolpackov1-1/+1
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
2012-05-08Don't (re)indent user-supplied prologues and epiloguesBoris Kolpackov1-57/+69
2012-04-23Polymorphic inheritance supportBoris Kolpackov1-32/+16
2012-03-09Add support for --show-sloc and --sloc-limit optionsBoris Kolpackov1-5/+52
2012-03-05Add support for generating schema creation code into separate C++ fileBoris Kolpackov1-0/+76
2012-01-29Update copyright yearBoris Kolpackov1-1/+1
2012-01-29Remove author field from file headerBoris Kolpackov1-1/+0
Too much effort to maintain.
2012-01-20ODB compiler implementation, traits, and types test for SQL ServerBoris Kolpackov1-0/+5
2011-11-08Get rid of special tracer databaseBoris Kolpackov1-26/+0
The include, types, and pragma tests have been moved to the common/ directory while the object test has been merged into common/lifecycle. The transaction test will be re-implemented as common/ test as soon as SQL statement tracing support is merged.
2011-10-24Generate database schema from database model instead of C++ modelBoris Kolpackov1-4/+30
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-21Make ODB Oracle awareConstantin Michael1-0/+4
2011-09-19Rename generation_failed exception to operation_failedBoris Kolpackov1-1/+1
A more generic name is required since it is now used in both generator and processor (and in the future may be used validator).
2011-09-19Make processing top-level action, like validation and generationBoris Kolpackov1-52/+2
2011-07-05Enable context creation for PostgreSQLConstantin Michael1-4/+1
2011-07-05Aesthetic changesConstantin Michael1-1/+4
2011-07-05Make compiler pgsql awareConstantin Michael1-0/+10
2011-06-29Add --include-regex and --include-regex-trace optionsBoris Kolpackov1-12/+9
This requires libcutl update.
2011-03-21Infrastructure setup and schema generation for SQLiteBoris Kolpackov1-50/+40
2011-03-21Move the rest of generators to new ctor-less contextBoris Kolpackov1-8/+4
2011-03-21Move tracer to new ctor-less contextBoris Kolpackov1-6/+4
2011-03-21Move type processor to relational/Boris Kolpackov1-5/+2
2011-03-21Split MySQL code generator into common and db-specific partsBoris Kolpackov1-14/+12
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.
2011-03-01Add support for embedded database schemasBoris Kolpackov1-3/+5
New options: --schema-format, --default-schema. New example: schema/embedded.
2011-01-04Copyright updateBoris Kolpackov1-1/+1
2010-11-06Add support for container persistenceBoris Kolpackov1-3/+3
2010-11-01Factor assignment of database type to separate passBoris Kolpackov1-2/+28
2010-10-27Implement support for composite value typesBoris Kolpackov1-4/+22
New test: common/composite.
2010-10-22Implement inclusion of dependant -odb headersBoris Kolpackov1-1/+5
New test: tracer/include.
2010-10-21Move prologue/epilogue inside pre/post includesBoris Kolpackov1-18/+18
2010-09-13Change GPL v3Boris Kolpackov1-1/+1
2010-09-12Update ODB descriptionBoris Kolpackov1-1/+1
2010-08-03Generated code infrastructureBoris Kolpackov1-0/+99
Add prologue/epilogue support, version check, and pre/post inclusion.
2010-07-22Next chunk of functionalityBoris Kolpackov1-14/+71
Add SQL language lexer. Implement MySQL type declaration parser. Create sub-directories for databases, currently mysql and tracer. Create MySQL-specific context.
2010-06-04Next chunk of functionalityBoris Kolpackov1-7/+123