summaryrefslogtreecommitdiff
path: root/odb/semantics/relational
AgeCommit message (Collapse)AuthorFilesLines
2012-07-27Add support for defining indexesBoris Kolpackov2-1/+39
New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index.
2012-07-27Move indexes from model scope to table scopeBoris Kolpackov5-27/+15
Conceptually, indexes belong to tables and some databases (MySQL, MSSQL) indeed treat them as such (i.e., you can have indexes with the same name in different tables).
2012-07-17Implement multi-pass table dropping for SQL ServerBoris Kolpackov1-0/+5
We have to first drop constraints before dropping tables in case the tables are dropped in a wrong order or there are circular dependencies.
2012-04-23Polymorphic inheritance supportBoris Kolpackov2-6/+3
2012-01-29Update copyright yearBoris Kolpackov19-19/+19
2012-01-29Remove author field from file headerBoris Kolpackov19-19/+0
Too much effort to maintain.
2012-01-26Implement support for database schemaBoris Kolpackov19-136/+455
New pragma qualifier: namespace. New pragma specifier: schema. The table specifier was extended to accept a schema prefix. New option: --default- schema. The common/schema test was extended to cover the new functionality.
2011-10-24Generate database schema from database model instead of C++ modelBoris Kolpackov16-0/+1173
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.