Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-08-21 | Add odb::connection class | Boris Kolpackov | 10 | -71/+110 | |
This abstract class represents a connection to the database. One can use it to start a transaction or to execute a native statement out of a transaction. Before we had concrete connection classes in the database runtime libraries (e.g., odb::mysql::connection). Now these classes derive from odb::connection. | |||||
2011-08-19 | Rework query machinery not to use '_' as primary table alias | Boris Kolpackov | 3 | -65/+151 | |
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself. | |||||
2011-08-18 | Fix custom recursive loading in post_load callback | Boris Kolpackov | 4 | -3/+45 | |
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-04 | Merge branch 'wrapper' | Boris Kolpackov | 1 | -1/+159 | |
2011-08-04 | Add support for value wrappers | Boris Kolpackov | 1 | -1/+159 | |
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-31 | Minor optimization | Boris Kolpackov | 1 | -1/+1 | |
2011-07-28 | Add value_traits specializations for std::vector<char> | Boris Kolpackov | 2 | -0/+52 | |
This allows using it as a buffer for BLOB mapping. | |||||
2011-07-27 | Bump version to 1.6.0 | Boris Kolpackov | 2 | -4/+4 | |
2011-07-25 | Suppress warnings1.5.0 | Boris Kolpackov | 1 | -5/+5 | |
2011-07-25 | Bump version to 1.5.0 | Boris Kolpackov | 2 | -4/+4 | |
2011-07-11 | Free prepared statement cache before closing connection | Boris Kolpackov | 1 | -0/+4 | |
2011-07-04 | Implement support for database operations callbacks | Boris Kolpackov | 3 | -8/+48 | |
New object pragma: callback. New test: common/callback. New manual section: 10.1.4, "callback". | |||||
2011-04-27 | Work around VC++ bugs1.4.0 | Boris Kolpackov | 2 | -2/+3 | |
2011-04-26 | Bump version to 1.4.0 | Boris Kolpackov | 2 | -4/+4 | |
2011-04-25 | Reuse container traits from base objects | Boris Kolpackov | 2 | -14/+62 | |
2011-04-25 | Pass id binding instead of id image in container traits | Boris Kolpackov | 4 | -25/+35 | |
This will allow us to reuse things more. | |||||
2011-04-24 | Remove stray post include | Boris Kolpackov | 1 | -2/+0 | |
2011-04-22 | Initial support for non-polymorphic inheritance | Boris Kolpackov | 1 | -1/+3 | |
Every class gets a separate table. New test: common/inheritance. | |||||
2011-04-20 | Add missing static qualifier | Boris Kolpackov | 1 | -1/+1 | |
2011-04-19 | Remove stray #endif | Boris Kolpackov | 1 | -2/+0 | |
2011-04-18 | Implement automatic mapping for C++ enums | Boris Kolpackov | 5 | -10/+204 | |
2011-04-18 | Get rid of image type argument in value_traits | Boris Kolpackov | 2 | -53/+118 | |
2011-04-05 | Bump version to 1.3.01.3.0 | Boris Kolpackov | 2 | -4/+4 | |
2011-04-03 | Make sure MySQL C API is not called from inline functions | Boris Kolpackov | 2 | -5/+7 | |
Otherwise, on some platforms, the user may need to link to libmysqlclient explicitly. | |||||
2011-03-31 | Bump version to 1.3.0.b1 | Boris Kolpackov | 2 | -4/+4 | |
2011-03-29 | Bring in other execute() overloads from odb::database | Boris Kolpackov | 1 | -0/+2 | |
2011-03-25 | Make queries without by-reference parameters immutable | Boris Kolpackov | 1 | -11/+32 | |
This makes it possible to share such queries between multiple threads without the need for synchronization. | |||||
2011-03-25 | Update interface to conform to what's expected by generated code | Boris Kolpackov | 4 | -8/+12 | |
2011-03-24 | Rename error to truncated in bindings | Boris Kolpackov | 5 | -11/+14 | |
2011-03-22 | Cosmetic changes | Boris Kolpackov | 1 | -2/+2 | |
2011-03-22 | Cosmetic changes | Boris Kolpackov | 2 | -19/+21 | |
2011-03-21 | Cosmetic changes | Boris Kolpackov | 2 | -7/+5 | |
2011-03-21 | Link to threaded libmysqlclient in libodb-mysql import stub | Boris Kolpackov | 1 | -1/+1 | |
2011-03-21 | Generate long options usage | Boris Kolpackov | 1 | -0/+1 | |
2011-03-15 | Avoid holding connection pool lock while pinging connection1.2.0 | Boris Kolpackov | 1 | -25/+42 | |
2011-03-15 | Change shared_ptr callback interface to work in mt-environment | Boris Kolpackov | 2 | -7/+9 | |
2011-03-15 | Bump version to 1.2.0 | Boris Kolpackov | 2 | -4/+4 | |
2011-02-22 | Fix iteration over uncached query result | Boris Kolpackov | 1 | -1/+1 | |
2011-02-21 | Add recoverable, connection_lost, and timeout exceptions | Boris Kolpackov | 1 | -2/+4 | |
The deadlock exception now inherits from recoverable. New manual section: 3.5, "Error Handling and Recovery". | |||||
2011-02-21 | Factor out active statement cancelling into separate function | Boris Kolpackov | 6 | -21/+33 | |
2011-02-21 | Cosmetic changes | Boris Kolpackov | 1 | -1/+1 | |
2011-02-21 | Validate connection in MySQL pool factory | Boris Kolpackov | 4 | -2/+45 | |
This will help deal with the MySQL server closing connections after a certain period of inactivity. | |||||
2011-02-21 | Cosmetic changes | Boris Kolpackov | 1 | -1/+1 | |
2011-02-21 | Don't reuse failed connections | Boris Kolpackov | 4 | -4/+29 | |
If MySQL API returns an error indicating the connection is no longer usable, mark it as failed. In connection_pool_factory free failed connections instead of returning them to the pool. | |||||
2011-02-18 | Factor out MySQL error to exception translation into separate function | Boris Kolpackov | 9 | -127/+148 | |
2011-02-15 | Add CLI as prerequisite in INSTALL-GIT | Boris Kolpackov | 1 | -3/+4 | |
2011-02-15 | Get rid of build version in INSTALL-GIT (just use latest) | Boris Kolpackov | 1 | -1/+1 | |
2011-01-24 | Bump version to 1.1.01.1.0 | Boris Kolpackov | 2 | -4/+4 | |
2011-01-18 | Add support for native SQL statement execution | Boris Kolpackov | 2 | -3/+48 | |
New test: mysql/native. New manual section: 3.9, "Executing Native SQL Statements". | |||||
2011-01-17 | Remove unneeded include | Boris Kolpackov | 1 | -1/+0 | |