summaryrefslogtreecommitdiff
path: root/odb/semantics/relational
AgeCommit message (Collapse)AuthorFilesLines
2013-12-04Implement on_delete pragma for object pointersBoris Kolpackov2-2/+5
Translates to the ON DELETE SQL clause.
2013-09-17Add schema name to changelogBoris Kolpackov2-1/+9
2013-09-16Implement logical column drop for SQLiteBoris Kolpackov1-0/+7
2013-09-15Cleanup polymorphic base tables when dropping derived oneBoris Kolpackov3-2/+29
2013-04-26Add support for extra database info in primary keyBoris Kolpackov5-53/+81
Use that to handle Oracle sequence name and SQLite lax auto ids.
2013-04-26Add support for table options in changelog, use to handle MySQL engineBoris Kolpackov2-3/+28
2013-04-26Add database name to changelogBoris Kolpackov2-1/+9
2013-04-10Generate add/drop foreign key migration statementsBoris Kolpackov4-14/+115
Also add the --fkeys-deferrable-mode option. General schemas generation rework.
2013-04-10Generate add/drop table migration statementsBoris Kolpackov3-3/+62
2013-04-10Add changelog support for add/drop index/foreign keyBoris Kolpackov18-112/+582
Also diagnose changes to primary keys and establish the 'alters' association.
2013-04-10Add changelog support for add, drop, and later columnBoris Kolpackov4-6/+260
2013-04-10Add support for maintaining log of database model changesBoris Kolpackov7-13/+126
2013-04-10Add support for copying database modelsBoris Kolpackov21-115/+273
2013-04-10Add changelog, changeset, and add_table semantics nodesBoris Kolpackov12-10/+384
2013-04-10Add initial support for database model serialization to XMLBoris Kolpackov17-124/+478
2013-02-09Update copyright yearBoris Kolpackov19-19/+19
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.