summaryrefslogtreecommitdiff
path: root/odb/relational/sqlite/schema.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-01-24Turn odb repository into muti-package repositoryKaren Arutyunov1-455/+0
Also remove the autoconf/make-based build system.
2020-02-13Drop copyright notice from source codeKaren Arutyunov1-1/+0
2019-01-16Update copyright yearKaren Arutyunov1-1/+1
2018-05-24Update copyright yearKaren Arutyunov1-1/+1
2017-06-22Handle ON DELETE and DEFERRABLE in special SQLite migration codeBoris Kolpackov1-0/+15
2017-01-03Update copyright yearBoris Kolpackov1-1/+1
2015-02-06Update copyrightBoris Kolpackov1-1/+1
2014-06-09Fix error messageBoris Kolpackov1-1/+1
2013-09-16Implement logical column drop for SQLiteBoris Kolpackov1-12/+95
2013-09-15Diagnose change of polymorphic base, table kindBoris Kolpackov1-4/+2
2013-09-15Cleanup polymorphic base tables when dropping derived oneBoris Kolpackov1-1/+42
2013-09-10In SQLite always add column without default value as NULLBoris Kolpackov1-7/+7
2013-04-26Add support for extra database info in primary keyBoris Kolpackov1-2/+2
Use that to handle Oracle sequence name and SQLite lax auto ids.
2013-04-25Add support for schema version tableBoris Kolpackov1-0/+35
2013-04-10Clean up class order in schema generatorsBoris Kolpackov1-43/+51
2013-04-10Generate add/drop foreign key migration statementsBoris Kolpackov1-6/+112
Also add the --fkeys-deferrable-mode option. General schemas generation rework.
2013-04-10Add NOT NULL column without default value initially as NULLBoris Kolpackov1-3/+11
2013-04-10Generate alter column migration statementsBoris Kolpackov1-0/+11
2013-04-10Generate add/drop column migration statementsBoris Kolpackov1-0/+54
2013-04-10Generate add/drop index migration statementsBoris Kolpackov1-1/+17
2013-02-09Update copyright yearBoris Kolpackov1-1/+1
2012-12-12Add support for SQL name transformationsBoris Kolpackov1-7/+4
2012-07-27Move indexes from model scope to table scopeBoris Kolpackov1-2/+18
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-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-26Implement support for database schemaBoris Kolpackov1-0/+30
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 Kolpackov1-53/+7
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-21Add support for const data membersBoris Kolpackov1-1/+2
Const data members are automatically treated as readonly. New test: const-member.
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-08-22Enable foreign key constraints checking in SQLiteBoris Kolpackov1-0/+16
Due to bugs in SQLite DDL foreign key support, we have to temporarily disable foreign keys when re-creating the schema. New manual section: 12.5.3, "Foreign Key Constraints".
2011-07-22Add pragma for setting type's or member's default valueBoris Kolpackov1-1/+25
New pragma: default. New test: default.
2011-03-21Infrastructure setup and schema generation for SQLiteBoris Kolpackov1-0/+44