summaryrefslogtreecommitdiff
path: root/odb/relational/mysql/source.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-01-24Turn odb repository into muti-package repositoryKaren Arutyunov1-724/+0
Also remove the autoconf/make-based build system.
2020-02-13Drop copyright notice from source codeKaren Arutyunov1-1/+0
2019-01-16Update copyright yearKaren Arutyunov1-1/+1
2018-05-24Update copyright yearKaren Arutyunov1-1/+1
2017-03-27Implement support for mixed auto/0 id assignment in MySQLBoris Kolpackov1-1/+12
Now one can do: odb::nullable<int64_t> id; And then, when used with NO_AUTO_VALUE_ON_ZERO, set the id to NULL to get auto-assignment or to 0 to use 0 as the id.
2017-01-03Update copyright yearBoris Kolpackov1-1/+1
2016-10-26Implement support for mixed auto/manual id assignment in SQLiteBoris Kolpackov1-1/+2
Now one can do: #pragma db id auto odb::nullable<int64_t> id; And then set the id to NULL to get auto-assignment or to the actual value to use a manual id.
2015-02-06Update copyrightBoris Kolpackov1-1/+1
2015-02-06Implement join types support in viewsBoris Kolpackov1-0/+13
2015-02-04Implement object loading viewsBoris Kolpackov1-139/+8
See section 10.2 in the manual for details.
2013-09-16Implement summary soft-deletion for composite value typesBoris Kolpackov1-2/+34
2013-09-10Schema versioning support for rest of databaseBoris Kolpackov1-3/+56
2013-02-09Update copyright yearBoris Kolpackov1-1/+1
2013-01-14Add support for MSSQL ROWVERSIONBoris Kolpackov1-6/+6
ODB can now use ROWVERSION column as an optimistic concurrency version.
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-08Ground work for multi-database supportBoris Kolpackov1-1/+1
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-07-10Add support for custom database type mappingBoris Kolpackov1-27/+14
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
2012-04-23Polymorphic inheritance supportBoris Kolpackov1-123/+11
2012-02-22Add support for composite object idsBoris Kolpackov1-321/+40
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-20ODB compiler implementation, traits, and types test for SQL ServerBoris Kolpackov1-14/+22
2012-01-20Use static variables instead of extern in unnamed namespaceBoris Kolpackov1-1/+0
2012-01-08Add support for defining composite value type as class template instantiationsBoris Kolpackov1-2/+2
2011-11-09Make sure we can use same type as both container and simple valueBoris Kolpackov1-4/+4
2011-11-01Implement support for optimistic concurrencyBoris Kolpackov1-3/+9
New pragmas: optimistic, version. New test: optimistic. New database function: reload().
2011-10-21Add support for const data membersBoris Kolpackov1-14/+28
Const data members are automatically treated as readonly. New test: const-member.
2011-10-21Add support for readonly membersBoris Kolpackov1-18/+56
New pragma: readonly. New test: readonly.
2011-10-21Split 'in' binding into insert/update pair; rename 'out' to selectBoris Kolpackov1-9/+52
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-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-16Support for views; integrated partBoris Kolpackov1-1/+25
2011-08-31Rename comp_value() predicate to composite()Boris Kolpackov1-8/+8
2011-08-28Add wrapper support for composite valuesBoris Kolpackov1-4/+31
NULL semantics for composite values is not yet supported.
2011-08-19Rework query machinery not to use '_' as primary table aliasBoris Kolpackov1-2/+2
Now we always qualify with the actual table name and use the '_' alias for situations where an object is referencing itself.
2011-07-22Cosmetic changeBoris Kolpackov1-1/+1
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-04-22Initial support for non-polymorphic inheritanceBoris Kolpackov1-2/+2
Every class gets a separate table. New test: common/inheritance.
2011-04-19Implement automatic mapping for C++ enumsBoris Kolpackov1-20/+113
2011-04-19Get rid of image type argument in value_traitsBoris Kolpackov1-16/+0
2011-03-24Generalization work for MySQL and SQLite supportBoris Kolpackov1-2/+14
2011-03-21Remove unnecessary codeBoris Kolpackov1-5/+5
2011-03-21Cosmetic changesBoris Kolpackov1-16/+16
2011-03-21Split MySQL code generator into common and db-specific partsBoris Kolpackov1-0/+899
The common part (in relational/) still has some MySQL-specific parts. Also, add the notion of the current context which is used to avoid explicitly passing the context object to every generator's c-tor.