aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-22Add database::erase_query() functionBoris Kolpackov5-0/+258
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 Kolpackov1-3/+12
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-19Rework query machinery not to use '_' as primary table aliasBoris Kolpackov1-1/+1
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself.
2011-08-18Fix custom recursive loading in post_load callbackBoris Kolpackov3-6/+50
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-04Add support for Qt QSharedPointer as value wrapperBoris Kolpackov2-0/+48
2011-08-04Add support for boost::optional and boost::shared_ptr as value wrappersBoris Kolpackov7-2/+281
New test: boost/common/optional.
2011-08-04Add support for value wrappersBoris Kolpackov6-2/+237
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-08-04Style changesBoris Kolpackov1-2/+2
2011-07-28Add value_traits specializations for std::vector<char>Boris Kolpackov9-132/+22
This allows using it as a buffer for BLOB mapping.
2011-07-27Bump version to 1.6.0Boris Kolpackov1-1/+1
2011-07-25Export variable separately to be compatible with POSIX shell1.5.0Boris Kolpackov1-1/+2
2011-07-25Add type qualifier to large integer literalsBoris Kolpackov1-2/+2
2011-07-25Bump version to 1.5.0Boris Kolpackov1-1/+1
2011-07-25Use initialization syntax instead of assignmentBoris Kolpackov1-1/+1
2011-07-25Add missing pgsql valueBoris Kolpackov1-1/+1
2011-07-25Correct spelling mistake in option nameBoris Kolpackov1-1/+1
2011-07-24Correct invalid psql option from --user to --usernameConstantin Michael2-3/+3
2011-07-24Correct misspelt psql option from --post to --portConstantin Michael1-1/+1
2011-07-24Remove all references to NUMERICConstantin Michael2-6/+1
2011-07-24Correct bug in calculation of varbit byte lengthConstantin Michael1-1/+1
2011-07-23Correct misquoted variable during driver generationConstantin Michael1-1/+1
2011-07-23Quieten psql notifications and warnings for dist build testsConstantin Michael1-0/+3
2011-07-23Add db.options and db-driver.bat files to distConstantin Michael1-1/+2
2011-07-23Correct psql option from --database to --dbnameConstantin Michael2-3/+3
2011-07-23Disable notifications and warnings in Windows psqlConstantin Michael1-0/+2
2011-07-23Add pgsql to list of databases in bootstrap makefileConstantin Michael1-1/+1
2011-07-22Add mising database macroBoris Kolpackov1-0/+1
2011-07-22Add pragma for setting type's or member's default valueBoris Kolpackov5-0/+256
New pragma: default. New test: default.
2011-07-22Test automatic and custom ENUM mappingsBoris Kolpackov2-5/+12
2011-07-22Cosmetic changesBoris Kolpackov1-1/+1
2011-07-22Include messages regarding trusted test database user in automake messagesConstantin Michael3-2/+8
2011-07-22Correct typoConstantin Michael1-1/+1
2011-07-22Correct the database identifier being used in pgsql test batch filesConstantin Michael2-2/+2
2011-07-22Correct typo in file info headerConstantin Michael1-1/+1
2011-07-22Correct linker options to import pgsql runtimeConstantin Michael2-8/+8
2011-07-22Link PostgreSQL template Visual Studio solutions to libodb-pgsql runtimeConstantin Michael2-8/+8
2011-07-22Add PostgreSQL driver and options for WindowsConstantin Michael2-0/+54
2011-07-22Update INSTALL to include PostgreSQLConstantin Michael1-0/+1
2011-07-22Correct makefile ommissionsConstantin Michael2-2/+2
2011-07-22MAke automake scripts PostgreSQL awareConstantin Michael5-0/+297
2011-07-21Enable Qt and Boost profile tests for PostgreSQLConstantin Michael5-4/+16
2011-07-21Add Qt profile tests for PostgreSQLConstantin Michael21-0/+1404
2011-07-21Add Boost profile tests for PostgreSQLConstantin Michael17-0/+1257
2011-07-19New design for NULL semanticsBoris Kolpackov10-78/+79
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-18Qualify id with table alias to help SQLite outBoris Kolpackov1-1/+1
This hack should go away once we have language-integrated support for ORDER BY.
2011-07-14Aesthetic changesConstantin Michael1-3/+5
2011-07-14Aesthetic changes to PostgreSQL BIT testConstantin Michael1-3/+11
2011-07-14Test VARBIT bit length is handled correctlyConstantin Michael3-18/+78
2011-07-14Templatize buffer to avoid duplicate code in unsigned buffer implementationConstantin Michael1-26/+43
2011-07-14Do not output empty PostgreSQL client configuration optionsConstantin Michael1-7/+12