summaryrefslogtreecommitdiff
path: root/odb/relational/mssql
AgeCommit message (Collapse)AuthorFilesLines
2014-11-24Tie various loose endsbulkBoris Kolpackov1-1/+11
2014-11-19Implement bulk API code generationBoris Kolpackov2-3/+10
2014-11-14Old interface compatibility and testing fixesBoris Kolpackov2-4/+82
Now all tests pass for both Oracle and SQL Server.
2013-12-04Implement on_delete pragma for object pointersBoris Kolpackov1-0/+19
Translates to the ON DELETE SQL clause.
2013-10-15Automatically map C++11 enum classes (strong enums)Boris Kolpackov1-8/+1
2013-09-16Diagnose (potentially) empty UPDATE statements with ROWVERSIONBoris Kolpackov1-2/+31
2013-09-15Cleanup polymorphic base tables when dropping derived oneBoris Kolpackov1-3/+5
2013-09-10Schema versioning support for rest of databaseBoris Kolpackov1-9/+16
2013-08-30Statement processing/optimization base workBoris Kolpackov2-28/+32
2013-08-14Add support for object sectionsBoris Kolpackov2-2/+75
Sections are an optimization mechanism that allows the partitioning of data members of a persistent class into groups that can be separately loaded and/or updated.
2013-04-26Add support for extra database info in primary keyBoris Kolpackov1-1/+1
Use that to handle Oracle sequence name and SQLite lax auto ids.
2013-04-25Add support for schema version tableBoris Kolpackov1-0/+61
2013-04-10Clean up class order in schema generatorsBoris Kolpackov1-14/+18
2013-04-10Get rid of ALTER TABLE callback since it is the same for all databasesBoris Kolpackov1-8/+8
2013-04-10Use single ALTER TABLE to add foreign keys on pass 2Boris Kolpackov1-22/+65
2013-04-10Generate add/drop foreign key migration statementsBoris Kolpackov1-178/+261
Also add the --fkeys-deferrable-mode option. General schemas generation rework.
2013-04-10Add NOT NULL column without default value initially as NULLBoris Kolpackov1-11/+12
2013-04-10Generate alter column migration statementsBoris Kolpackov1-4/+49
2013-04-10Generate add/drop column migration statementsBoris Kolpackov1-0/+84
2013-04-10Generate add/drop index migration statementsBoris Kolpackov1-0/+15
2013-04-10Generate add/drop table migration statementsBoris Kolpackov1-21/+42
2013-02-09Update copyright yearBoris Kolpackov9-9/+9
2013-02-05Add support for change-tracking containersBoris Kolpackov1-1/+1
ODB now supports "smart" ordered containers. Such containers get extra functions for updating and deleting individual elements. Based on this functionality implement two change-tracking containers: odb::vector (equivalent to std::vector) and QOdbList (equivalent to QList). New tests: common/container/change-tracking and qt/common/container/change- tracking.
2013-01-24Add support for mapping char[N] to CHAR/VARCHAR database typesBoris Kolpackov2-4/+45
Also improve query support for arrays (decaying).
2013-01-14Add support for MSSQL ROWVERSIONBoris Kolpackov2-18/+157
ODB can now use ROWVERSION column as an optimistic concurrency version.
2012-12-12Add support for SQL name transformationsBoris Kolpackov3-23/+12
2012-11-21Add dynamic multi-database query supportBoris Kolpackov1-5/+11
2012-10-08Ground work for multi-database supportBoris Kolpackov1-1/+2
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-09-16Set explicit unlimited size for MSSQL TEXT, NTEXT, and IMAGE typesBoris Kolpackov1-0/+8
2012-09-04NULL handling improvementsBoris Kolpackov1-23/+25
Add support for specifying NULL-ness for types with built-in mapping. Handle Oracle [N]VARCHAR2 and SQLite FLOAT oddities using this mechanism instead of overriding it at the schema generation level. Also use the is_null argument that is passed to value_traits::init_image() to indicate whether the value can be NULL.
2012-08-15Add support for member accessors/modifiersBoris Kolpackov1-0/+35
New pragmas: get, set, access. New test: common/access.
2012-08-15Factor out check for SQL Server long dataBoris Kolpackov5-88/+56
2012-07-27Move indexes from model scope to table scopeBoris Kolpackov1-14/+0
Conceptually, indexes belong to tables and some databases (MySQL, MSSQL) indeed treat them as such (i.e., you can have indexes with the same name in different tables).
2012-07-17Remove unnecessary instance<> usageBoris Kolpackov1-2/+2
2012-07-17Implement multi-pass table dropping for SQL ServerBoris Kolpackov1-3/+73
We have to first drop constraints before dropping tables in case the tables are dropped in a wrong order or there are circular dependencies.
2012-07-10Add support for custom database type mappingBoris Kolpackov5-64/+176
New pragma qualifier, map, and specifiers: as, to, from. New tests: <database>/custom.
2012-06-29Cosmetic changesBoris Kolpackov1-1/+1
2012-04-27Add support for NULL pointers to objects with composite object idsBoris Kolpackov1-0/+43
2012-04-25Fix auto id handling in polymorphic objectsBoris Kolpackov1-1/+4
2012-04-23Polymorphic inheritance supportBoris Kolpackov4-147/+59
2012-03-07Use RAII to free select statement resultsBoris Kolpackov2-18/+1
2012-03-05Add support for generating schema creation code into separate C++ fileBoris Kolpackov1-3/+3
2012-02-22Add support for composite object idsBoris Kolpackov6-533/+72
New pragma id_type (member). New test: common/composite-id. The composite example has also been updated.
2012-01-29Update copyright yearBoris Kolpackov8-8/+8
2012-01-29Remove author field from file headerBoris Kolpackov8-8/+0
Too much effort to maintain.
2012-01-26Implement support for database schemaBoris Kolpackov3-15/+42
New pragma qualifier: namespace. New pragma specifier: schema. The table specifier was extended to accept a schema prefix. New option: --default- schema. The common/schema test was extended to cover the new functionality.
2012-01-20Work around SQL Server 2005 bug with long data and OUTPUT clauseBoris Kolpackov2-3/+95
2012-01-20Add integers in ODB compiler instead of generated codeBoris Kolpackov1-2/+2
2012-01-20Change short data max and default string sizes for SQL ServerBoris Kolpackov1-1/+2
Now the default short data max is 1024, non-key string size is 512 characters, and key string size is 256 characters. Also add default mapping for std::wstring.
2012-01-20Customize generated pointer column wrapper ctorBoris Kolpackov1-0/+12
For SQL Server we need to be able to pass precision/scale.