summaryrefslogtreecommitdiff
path: root/odb
AgeCommit message (Collapse)AuthorFilesLines
2013-04-10Write NULL/NOT NULL before DEFAULT in generated schemasBoris Kolpackov2-5/+30
This way we avoid DEFAULT NULL NULL, except for Oracle which insists on a specific order.
2013-04-10Generate add/drop foreign key migration statementsBoris Kolpackov21-763/+1305
Also add the --fkeys-deferrable-mode option. General schemas generation rework.
2013-04-10Don't throw null_pointer on load operationsBoris Kolpackov1-4/+5
This can be useful during migration. Plus this should be enforced by the database.
2013-04-10Add NOT NULL column without default value initially as NULLBoris Kolpackov5-37/+82
2013-04-10Allow no-op node-based traversersBoris Kolpackov1-0/+2
Useful for overrides.
2013-04-10Explicitly specify NULL for nullable columns in generated schemaBoris Kolpackov2-25/+4
2013-04-10Generate alter column migration statementsBoris Kolpackov6-22/+292
2013-04-10Generate add/drop column migration statementsBoris Kolpackov4-30/+402
2013-04-10Generate add/drop index migration statementsBoris Kolpackov6-26/+275
2013-04-10Generate add/drop table migration statementsBoris Kolpackov13-464/+822
2013-04-10Make changelog base version always correspond to model versionBoris Kolpackov1-63/+103
2013-04-10Add changelog support for add/drop index/foreign keyBoris Kolpackov21-129/+927
Also diagnose changes to primary keys and establish the 'alters' association.
2013-04-10Add changelog support for add, drop, and later columnBoris Kolpackov7-9/+462
2013-04-10Rename --output-name to --input-nameBoris Kolpackov3-10/+12
2013-04-10Fix option querying bugBoris Kolpackov1-1/+1
2013-04-10Add --changelog{,-in,-out,-dir} optionsBoris Kolpackov5-24/+110
2013-04-10Add support for maintaining log of database model changesBoris Kolpackov12-32/+555
2013-04-10Add support for copying database modelsBoris Kolpackov21-115/+273
2013-04-10Add --changelog-file-suffix and --changelog-suffix optionsBoris Kolpackov2-0/+19
2013-04-10Add model version pragmaBoris Kolpackov3-22/+160
2013-04-10Remove unnecessary includeBoris Kolpackov1-2/+0
2013-04-10Add changelog, changeset, and add_table semantics nodesBoris Kolpackov21-10/+561
2013-04-10Add initial support for database model serialization to XMLBoris Kolpackov21-153/+514
2013-04-10Add commentBoris Kolpackov1-1/+4
2013-04-10Move type check to model creation instead of schema generationBoris Kolpackov2-10/+34
This way we make sure cxx-location is only used during model creation. As a result, we can now generate schema from a model instantiated from XML.
2013-04-01Handle inverse member in base class of polymorphic hierarchyBoris Kolpackov2-49/+97
2013-03-19Add support for installing plugin into default GCC plugin directoryBoris Kolpackov2-35/+100
2013-03-08Pass --sysroot/-isysroot when extracting profile search pathsBoris Kolpackov1-1/+14
2013-02-22Search in outer directories for default options fileBoris Kolpackov1-3/+23
2013-02-21Bump version to 2.2.12.2.1Boris Kolpackov1-2/+2
2013-02-19Remove unnecessary header inclusionBoris Kolpackov1-1/+0
This was causing problems in libintl.h with newer versions of GCC that are built with --disable-nls.
2013-02-12Work around odd GCC tree behavior2.2.0Boris Kolpackov2-6/+4
2013-02-11Provide default mapping for wchar_t and wchar_t[N] for SQLiteBoris Kolpackov1-1/+3
2013-02-10Suppress some warningsBoris Kolpackov3-0/+4
2013-02-10Use nul instead of /dev/null on WindowsBoris Kolpackov1-1/+8
2013-02-10Include std::string into ODB translation unitBoris Kolpackov1-0/+7
Use use it for the implicit discriminator member.
2013-02-09Bump version to 2.2.0Boris Kolpackov1-4/+4
2013-02-09Update copyright yearBoris Kolpackov198-199/+199
2013-02-07Use multi-pass table creation in MySQLBoris Kolpackov1-25/+204
This deals with table creation order and circular dependencies. Unfortunately, there doesn't seem to be a way in MySQL to drop a foreign key only if it exists without resorting to stored procedures.
2013-02-07Rename boolean to boolean_ (macro clash)Boris Kolpackov1-1/+1
2013-02-06Install plugin to pkgexecdir instead of bindirBoris Kolpackov3-32/+56
2013-02-06Respect DESTDIR in install hookBoris Kolpackov1-1/+1
Thanks to Hugo Mildenberger <Hugo.Mildenberger@web.de> for the patch.
2013-02-05Add support for change-tracking containersBoris Kolpackov11-416/+1072
ODB now supports "smart" ordered containers. Such containers get extra functions for updating and deleting individual elements. Based on this functionality implement two change-tracking containers: odb::vector (equivalent to std::vector) and QOdbList (equivalent to QList). New tests: common/container/change-tracking and qt/common/container/change- tracking.
2013-01-24Add support for mapping char[N] to CHAR/VARCHAR database typesBoris Kolpackov13-45/+222
Also improve query support for arrays (decaying).
2013-01-23Add commentBoris Kolpackov1-1/+2
2013-01-16Make session cache management functions static, add notificationsBoris Kolpackov1-4/+9
2013-01-16Implement two-phase session insertionBoris Kolpackov1-2/+5
On the first step an uninitialized object is inserted into the cache as before (this is necessary to handle recursive loading). The second step is to notify the session that the object has been initialized. On this second step the session can perform change tracking preparations, such as make a copy of the object or reset the modification flag. New test: common/session/custom (implements a custom session that uses copies to track changes).
2013-01-16Add support for using custom session implementationsBoris Kolpackov2-8/+31
New option, --session-type.
2013-01-15Bump version to 2.2.0.a3Boris Kolpackov1-4/+4
2013-01-14Fix bug in handling polymorphic derived classes without any value membersBoris Kolpackov1-27/+51