aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-22Bump version to 1.6.0.a11.6.0.a1Boris Kolpackov2-5/+5
2011-08-22Document odb::connectionBoris Kolpackov2-91/+284
2011-08-22Add database::erase_query() functionBoris Kolpackov6-34/+141
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-08-22Enable foreign key constraints checking in SQLiteBoris Kolpackov3-12/+106
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-08-22Add --table-prefix optionBoris Kolpackov3-5/+32
Assign unique table prefixes to most examples. This makes sure that we don't end up with broken schemas where half of the tables were changed by the next test and the other half has foreign keys that now point to nowhere.
2011-08-21Add support for multi-pass database schema dropBoris Kolpackov4-34/+98
2011-08-19Rework query machinery not to use '_' as primary table aliasBoris Kolpackov4-28/+67
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself.
2011-08-19Cosmetic changeBoris Kolpackov1-1/+1
2011-08-19Make container object_id reference the objectBoris Kolpackov3-13/+56
Make it ON DELETE CASCADE. Also in erase(), delete the container rows first.
2011-08-18Fix custom recursive loading in post_load callbackBoris Kolpackov1-2/+2
Before we called the callback while holding the statements locked. As a result, if the callback tried to load another object of this type, it failed. Now we unlock the statements (since we have completely loaded the object from ODB's point of view) and then call the callback. The callback test has been updated to test this situation.
2011-08-04Update NEWS file with new featuresBoris Kolpackov1-3/+20
2011-08-04Add documentation for new value wrappersBoris Kolpackov1-44/+309
New sections: 7.3, "NULL Value Semantics" and 15.3, "Optional Library".
2011-08-04Add support for value wrappersBoris Kolpackov4-19/+336
Wrapper is a class that wraps another type. Examples of wrappers are various smart pointers, holders, etc. A wrapper can be transparent or it can handle the NULL semantics. The new odb::nullable class template is a NULL wrapper that helps to add the NULL semantics to a value type. New test: common/wrapper.
2011-07-28Fix incorrect pragmaBoris Kolpackov1-1/+1
2011-07-28Documentation for std::vector<char> to BLOB mappingBoris Kolpackov2-0/+111
2011-07-27Documentation fixBoris Kolpackov1-1/+1
2011-07-27Bump version to 1.6.0Boris Kolpackov5-11/+11
2011-07-25Add support for Mac OS X DYLD_LIBRARY_PATH1.5.0Boris Kolpackov1-2/+8
2011-07-25Proofread NEWS fileBoris Kolpackov1-21/+21
2011-07-25Remove @@ notes that no longer applyBoris Kolpackov2-3/+1
2011-07-25Add entry about PostgreSQL supportBoris Kolpackov1-0/+6
2011-07-25Bump version to 1.5.0Boris Kolpackov5-11/+11
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-24Update NEWS file with entries for default and options pragmasBoris Kolpackov1-1/+10
2011-07-24Document default and options pragmasBoris Kolpackov1-156/+603
2011-07-24Add support for resetting options accumulated with options pragmaBoris Kolpackov2-23/+102
2011-07-24Allow pragmas to be either overriding or accumulatingBoris Kolpackov3-41/+66
2011-07-22Add pragma for setting type's or member's default valueBoris Kolpackov9-7/+474
New pragma: default. New test: default.
2011-07-22Cosmetic changeBoris Kolpackov1-1/+1
2011-07-22Cosmetic changeBoris Kolpackov1-1/+1
2011-07-22Fix SQL lexer to handle double-quoting instead of escape-sequencesBoris Kolpackov1-10/+10
2011-07-22Parse and store MySQL ENUM enumerator stringsBoris Kolpackov2-4/+31
2011-07-22Use quote_string() to quote enumeratorsBoris Kolpackov1-3/+1
2011-07-22Cosmetic changesBoris Kolpackov1-2/+2
2011-07-22Register enumerators in tree-node map, fix enumerator values calculationBoris Kolpackov1-7/+11
2011-07-22Add support for SQL string quotingBoris Kolpackov3-0/+39
2011-07-22Add support for optional tree node value in pragmasBoris Kolpackov3-4/+14
2011-07-22Add support for specifying extra column optionsBoris Kolpackov4-46/+240
New pragmas: options, id_options, index_options, key_options, and value_options.
2011-07-22Change section orderBoris Kolpackov2-25/+25
2011-07-22Corrections to PostgreSQL profile support sections in the ODB manualConstantin Michael1-10/+8
2011-07-22Add sections to ODB manual for PostgreSQL support of Boost and QT profilesConstantin Michael1-1/+129
2011-07-21Correct container statement name generation for PostgreSQLConstantin Michael1-2/+2
2011-07-20Update NEWS files with new NULL handlingBoris Kolpackov1-0/+26
2011-07-20Update manual with new null/not_null pragmas documentationBoris Kolpackov1-208/+411
2011-07-20Documentation fixes for PostgreSQL chapterBoris Kolpackov1-182/+128
2011-07-20Add PostgreSQL database chapterConstantin Michael1-0/+587
2011-07-19New design for NULL semanticsBoris Kolpackov16-129/+282
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-19Cosmetic changeBoris Kolpackov1-1/+1
2011-07-19Store location along with pragma value in semantic graph contextBoris Kolpackov1-0/+2
2011-07-14Map unsigned short and int C++ types to SMALLINT and INTEGER PostgreSQL typesConstantin Michael1-2/+2