summaryrefslogtreecommitdiff
path: root/odb/relational/pgsql/source.cxx
AgeCommit message (Collapse)AuthorFilesLines
2012-11-20Ignore polymorphic id reference when generating grow()2.1.12.1Boris Kolpackov1-0/+6
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-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 Kolpackov1-5/+10
Specifically, avoid sending the auto id value.
2012-07-17Remove unnecessary instance<> usageBoris Kolpackov1-23/+23
2012-07-10Add support for custom database type mappingBoris Kolpackov1-1/+2
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
2012-04-25Fix auto id handling in polymorphic objectsBoris Kolpackov1-1/+4
2012-04-23Polymorphic inheritance supportBoris Kolpackov1-171/+67
2012-02-22Add support for composite object idsBoris Kolpackov1-367/+69
New pragma id_type (member). New test: common/composite-id. The composite example has also been updated.
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-20Remove unnecessary qualificationBoris Kolpackov1-1/+1
2012-01-20ODB compiler implementation, traits, and types test for SQL ServerBoris Kolpackov1-1/+6
2012-01-08Add support for defining composite value type as class template instantiationsBoris Kolpackov1-5/+5
2011-11-09Make sure we can use same type as both container and simple valueBoris Kolpackov1-5/+5
2011-11-01Implement support for optimistic concurrencyBoris Kolpackov1-4/+49
New pragmas: optimistic, version. New test: optimistic. New database function: reload().
2011-10-28Implement returning of auto id using RETURNING clause in PostgreSQLBoris Kolpackov1-0/+12
Before we used a separate SELECT lastval() query which was both inefficient and error-prone in cases where INSERT may cause triggers to override the last value.
2011-10-27Add support for persistent classes without object idsBoris Kolpackov1-14/+20
New pragma id (object). New test: common/no-id.
2011-10-21Add support for const data membersBoris Kolpackov1-17/+32
Const data members are automatically treated as readonly. New test: const-member.
2011-10-21Add support for readonly membersBoris Kolpackov1-19/+58
New pragma: readonly. New test: readonly.
2011-10-21Split 'in' binding into insert/update pair; rename 'out' to selectBoris Kolpackov1-25/+86
Also add the initial infrastructure for the readonly members support. Right now the split insert/update bindings allows us to avoid sending object id in UPDATE statements. It will also allows us to support readonly members.
2011-09-22Make PG generated code look nicer1.6.0.a2Boris Kolpackov1-8/+7
2011-09-21Rework const object handlingBoris Kolpackov1-1/+1
Now objects are always loaded as non-const and the object cache in session treats all objects as non-const.
2011-09-20Rename query_clause to query_statement for consistencyBoris Kolpackov1-2/+2
2011-09-16Support for views; integrated partBoris Kolpackov1-5/+6
2011-09-09New templated query_columns architectureBoris Kolpackov1-16/+16
We also now use the correct separate "role"-base join approach instead of having a single merged join for each table.
2011-09-09Fix bug in PG type oid generationBoris Kolpackov1-6/+16
2011-09-06View support customizations for PostgreSQLBoris Kolpackov1-8/+32
2011-09-05Support for views; native partBoris Kolpackov1-2/+2
2011-08-31Rename comp_value() predicate to composite()Boris Kolpackov1-10/+10
2011-08-31Cosmetic changes and cleanupsBoris Kolpackov1-7/+9
Rename some functions to have consistent names. Add object() predicate.
2011-08-28Add wrapper support for containersBoris Kolpackov1-6/+5
2011-08-28Add wrapper support for composite valuesBoris Kolpackov1-6/+34
NULL semantics for composite values is not yet supported.
2011-08-22Add database::erase_query() functionBoris Kolpackov1-8/+20
New test: common/erase-query. Documentation is in Section 3.9, "Deleting Persistent Objects". The current implementation does not work well with the session (no removal of the erased objects from the cache).
2011-07-24Never generate zero length oid arrays for PostgreSQLConstantin Michael1-0/+8
VC++ does not allow zero length array initialization, nor for const values to remain uninitialized.
2011-07-21Correct container statement name generation for PostgreSQLConstantin Michael1-2/+2
2011-07-19New design for NULL semanticsBoris Kolpackov1-2/+2
Now, instead of being specified as part of the SQL type with the type pragma, there are separate null and not_null pragmas. The not_null pragma was used to control NULL-ness of object pointers. Now the two pragmas are used consistently for object pointers and simple values (and in the future will work for composite values and containers).
2011-07-13Aesthetic changesConstantin Michael1-3/+3
2011-07-13Add support for DATE, TIME and TIMESTAMP PostgreSQL typesConstantin Michael1-18/+22
2011-07-08Fix inverse case of container select_all statement parameter type generationConstantin Michael1-4/+2
2011-07-05Update source generation to use PostgreSQL specific query implementationConstantin Michael1-1/+0
2011-07-05Correct container statement name logic to avoid inherited name conflictsConstantin Michael1-1/+5
2011-07-05Only generate query statement names if queries are being generatedConstantin Michael1-8/+13
2011-07-05Implement PostgreSQL query_statement_ctor and post_query_ hooksConstantin Michael1-0/+23
2011-07-05Generate PostgreSQL query statement nameConstantin Michael1-0/+8
2011-07-05Correct PostgreSQL container statement and types array generationConstantin Michael1-112/+54
2011-07-05Implement PostgreSQL container statement name and types array generationConstantin Michael1-53/+244
2011-07-05Add support for auto ID aware PostgreSQL query parameter generationConstantin Michael1-5/+18
2011-07-05Implement PostgreSQL statement name and types array code generationConstantin Michael1-7/+122