aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/oracle
AgeCommit message (Collapse)AuthorFilesLines
2015-02-06Update copyrightBoris Kolpackov9-9/+9
2015-02-05Implement result modifiers in view query conditionBoris Kolpackov1-0/+15
2015-02-04Implement object loading viewsBoris Kolpackov4-40/+21
See section 10.2 in the manual for details.
2015-01-22Add support for warning about SQL name truncations in OracleBoris Kolpackov1-3/+170
Also detect and issue diagnostics when such truncations lead to name conflicts.
2014-11-26Reimplement image copying for OracleBoris Kolpackov1-1/+1
Now we no longer "steal" descriptors (destructive copy). Instead, for LOBs, we clone the locator using OCILobAssign(). For date-time types we extract the data during copying. As a result of this change we no longer need to track image changes and rebind the statements.
2014-11-25Implement bulk database operation support for Oracle and SQL ServerBoris Kolpackov2-0/+31
2013-10-15Automatically map C++11 enum classes (strong enums)Boris Kolpackov1-8/+1
2013-09-15Cleanup polymorphic base tables when dropping derived oneBoris Kolpackov1-7/+22
2013-08-30Statement processing/optimization base workBoris Kolpackov1-14/+13
2013-08-14Add support for object sectionsBoris Kolpackov1-0/+12
Sections are an optimization mechanism that allows the partitioning of data members of a persistent class into groups that can be separately loaded and/or updated.
2013-04-26Add support for extra database info in primary keyBoris Kolpackov2-7/+14
Use that to handle Oracle sequence name and SQLite lax auto ids.
2013-04-25Add support for schema version tableBoris Kolpackov1-0/+50
2013-04-10Clean up class order in schema generatorsBoris Kolpackov1-33/+37
2013-04-10Get rid of ALTER TABLE callback since it is the same for all databasesBoris Kolpackov1-10/+12
2013-04-10Use single ALTER TABLE to add foreign keys on pass 2Boris Kolpackov1-2/+2
2013-04-10Write NULL/NOT NULL before DEFAULT in generated schemasBoris Kolpackov1-0/+20
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 Kolpackov1-103/+84
Also add the --fkeys-deferrable-mode option. General schemas generation rework.
2013-04-10Add NOT NULL column without default value initially as NULLBoris Kolpackov1-6/+7
2013-04-10Generate alter column migration statementsBoris Kolpackov1-6/+59
2013-04-10Generate add/drop column migration statementsBoris Kolpackov1-0/+92
2013-04-10Generate add/drop index migration statementsBoris Kolpackov1-1/+18
2013-04-10Generate add/drop table migration statementsBoris Kolpackov1-28/+54
2013-02-09Update copyright yearBoris Kolpackov9-9/+9
2013-02-05Add support for change-tracking containersBoris Kolpackov1-1/+1
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 Kolpackov2-4/+49
Also improve query support for arrays (decaying).
2012-12-12Add support for SQL name transformationsBoris Kolpackov4-26/+38
2012-11-21Add dynamic multi-database query supportBoris Kolpackov1-6/+12
2012-10-08Ground work for multi-database supportBoris Kolpackov1-1/+2
All generated code now includes database id. The database-specific database class interface has been updated to include all the database operations. The database-specific tests now use this interface.
2012-09-04NULL handling improvementsBoris Kolpackov2-65/+25
Add support for specifying NULL-ness for types with built-in mapping. Handle Oracle [N]VARCHAR2 and SQLite FLOAT oddities using this mechanism instead of overriding it at the schema generation level. Also use the is_null argument that is passed to value_traits::init_image() to indicate whether the value can be NULL.
2012-08-15Add support for member accessors/modifiersBoris Kolpackov1-0/+39
New pragmas: get, set, access. New test: common/access.
2012-07-27Move indexes from model scope to table scopeBoris Kolpackov1-0/+20
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-25Simplify auto id implementation in OracleBoris Kolpackov3-44/+13
Specifically, instead of using a trigger to assign the next id from the sequence, get the next value directly in the INSERT statement.
2012-07-17Remove unnecessary instance<> usageBoris Kolpackov1-2/+2
2012-07-11Drop Oracle trigger and sequence only if we have auto primary keyBoris Kolpackov1-18/+38
2012-07-10Add support for custom database type mappingBoris Kolpackov5-64/+132
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
2012-07-10Add missing newlineBoris Kolpackov1-1/+1
2012-06-29Cosmetic changesBoris Kolpackov1-1/+1
2012-04-27Add support for NULL pointers to objects with composite object idsBoris Kolpackov1-0/+43
2012-04-25Fix auto id handling in polymorphic objectsBoris Kolpackov1-1/+4
2012-04-23Polymorphic inheritance supportBoris Kolpackov4-140/+52
2012-03-09Don't override NOT NULL on Oracle VARCHAR column if it's primary keyBoris Kolpackov1-4/+21
2012-03-07Use RAII to free select statement resultsBoris Kolpackov1-0/+1
2012-03-05Add support for generating schema creation code into separate C++ fileBoris Kolpackov1-6/+6
2012-02-22Add support for composite object idsBoris Kolpackov6-525/+79
New pragma id_type (member). New test: common/composite-id. The composite example has also been updated.
2012-01-29Update copyright yearBoris Kolpackov8-8/+8
2012-01-29Remove author field from file headerBoris Kolpackov8-8/+0
Too much effort to maintain.
2012-01-26Implement support for database schemaBoris Kolpackov3-15/+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.
2012-01-22Pass precision and scale to Oracle query_paramBoris Kolpackov3-18/+105
2012-01-22Fix INTERVAL types parsingBoris Kolpackov1-8/+29
Assign default precisions, store seconds precision for INTERVAL DAY TO SECOND in scale since prec stores the days precisions.
2012-01-22Rename range to precision in Oracle generatorBoris Kolpackov4-59/+60