summaryrefslogtreecommitdiff
path: root/odb/relational/pgsql
AgeCommit message (Collapse)AuthorFilesLines
2018-05-24Update copyright yearKaren Arutyunov9-9/+9
2017-11-07Get rid of GCC 7 case fall-through warningsBoris Kolpackov1-6/+3
2017-01-03Update copyright yearBoris Kolpackov9-9/+9
2016-11-27Fix bug in handling section members that require growthBoris Kolpackov2-6/+7
2016-05-04Ignore section logic when dealing with container elementsBoris Kolpackov1-1/+5
The container member itself can be in a section.
2015-07-15Implement SQLite incremental BLOB/TEXT I/OBoris Kolpackov1-2/+2
2015-07-03Implement nested id supportBoris Kolpackov2-6/+6
Now the 'id' specifier can optionally include the data member path to the id inside the composite value. For example: #pragma db id(first) std::pair<int, int> p; Note that one somewhat counter-intuitive aspect of this new feature is that the whole member marked with id ('p' in the above example) and not just the actual id member ('p.first' in the above example) is treated as readonly. Such nested id also cannot be automatically assigned (auto specifier).
2015-07-02C++ type mapping support for container elementsasBoris Kolpackov5-27/+44
2015-06-16Implement support for nested members in inverse pragmaBoris Kolpackov1-2/+2
2015-02-06Update copyrightBoris Kolpackov9-9/+9
2015-02-04Implement object loading viewsBoris Kolpackov4-188/+27
See section 10.2 in the manual for details.
2015-01-23Handle name truncation in PostgreSQLBoris Kolpackov3-18/+115
2014-11-25Implement bulk database operation support for Oracle and SQL ServerBoris Kolpackov1-0/+1
2013-10-15Automatically map C++11 enum classes (strong enums)Boris Kolpackov1-8/+1
2013-09-16Implement summary soft-deletion for composite value typesBoris Kolpackov1-2/+34
2013-09-15Cleanup polymorphic base tables when dropping derived oneBoris Kolpackov1-1/+10
2013-09-05Versioned section supportBoris Kolpackov1-1/+25
2013-09-02Fix UPDATE statement for smart containers with read-only value membersBoris Kolpackov1-2/+7
Here we have to include them (think what happens when we erase an element somewhere in the middle of a container).
2013-09-02Support for versioning simple value in objectBoris Kolpackov1-3/+32
2013-08-30Statement processing/optimization base workBoris Kolpackov1-16/+26
2013-08-14Add support for object sectionsBoris Kolpackov4-59/+200
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-25Add support for schema version tableBoris Kolpackov1-0/+103
2013-04-10Clean up class order in schema generatorsBoris Kolpackov1-0/+4
2013-04-10Generate add/drop foreign key migration statementsBoris Kolpackov1-88/+12
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/+3
2013-04-10Generate alter column migration statementsBoris Kolpackov1-0/+13
2013-04-10Generate add/drop table migration statementsBoris Kolpackov1-4/+7
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-02-09Update copyright yearBoris Kolpackov9-9/+9
2013-02-07Rename boolean to boolean_ (macro clash)Boris Kolpackov1-1/+1
2013-02-05Add support for change-tracking containersBoris Kolpackov2-28/+127
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/+37
Also improve query support for arrays (decaying).
2012-12-12Add support for SQL name transformationsBoris Kolpackov3-13/+6
2012-11-21Add dynamic multi-database query supportBoris Kolpackov1-1/+1
2012-11-20Merge branch '2.1'Boris Kolpackov1-0/+6
2012-11-20Ignore polymorphic id reference when generating grow()2.1.12.1Boris Kolpackov1-0/+6
2012-10-19Completion of prepared query supportBoris Kolpackov1-14/+24
2012-10-19Initial support for prepared queriesBoris Kolpackov1-2/+3
2012-10-08Ground work for multi-database supportBoris Kolpackov2-4/+5
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 Kolpackov1-21/+23
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-14Fix potential container statement name conflictBoris Kolpackov1-3/+6
2012-07-27Handle special case of array of zero elementsBoris Kolpackov1-0/+7
2012-07-27Add support for defining indexesBoris Kolpackov1-4/+47
New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index.
2012-07-27Move indexes from model scope to table scopeBoris Kolpackov1-2/+6
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 Kolpackov1-10/+1
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-25Clean up PostgreSQL auto id implementationBoris Kolpackov2-6/+11
Specifically, avoid sending the auto id value.
2012-07-17Remove unnecessary instance<> usageBoris Kolpackov2-25/+25
2012-07-10Add support for custom database type mappingBoris Kolpackov4-44/+131
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
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