Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-02-13 | Drop copyright notice from source code | Karen Arutyunov | 1 | -1/+0 | |
2019-01-16 | Update copyright year | Karen Arutyunov | 1 | -1/+1 | |
2018-05-24 | Update copyright year | Karen Arutyunov | 1 | -1/+1 | |
2017-04-06 | Map string keys to MySQL VARCHAR(128) instead of 255 to support 4-byte UTF-8 | Boris Kolpackov | 1 | -1/+1 | |
This is a backwards-incompatible change in that it may change your schema. To obtain the old behavior you will have to explicitly re-map std::string with the id_type pragma or explicitly specify the database type for each affected id member with the type pragma. | |||||
2017-01-03 | Update copyright year | Boris Kolpackov | 1 | -1/+1 | |
2015-02-06 | Update copyright | Boris Kolpackov | 1 | -1/+1 | |
2013-12-04 | Implement on_delete pragma for object pointers | Boris Kolpackov | 1 | -0/+18 | |
Translates to the ON DELETE SQL clause. | |||||
2013-04-26 | Add support for extra database info in primary key | Boris Kolpackov | 1 | -1/+1 | |
Use that to handle Oracle sequence name and SQLite lax auto ids. | |||||
2013-04-26 | Add support for table options in changelog, use to handle MySQL engine | Boris Kolpackov | 1 | -10/+0 | |
2013-04-25 | Add support for schema version table | Boris Kolpackov | 1 | -6/+41 | |
2013-04-10 | Clean up class order in schema generators | Boris Kolpackov | 1 | -44/+49 | |
2013-04-10 | Get rid of ALTER TABLE callback since it is the same for all databases | Boris Kolpackov | 1 | -2/+2 | |
2013-04-10 | Use single ALTER TABLE to add foreign keys on pass 2 | Boris Kolpackov | 1 | -30/+66 | |
2013-04-10 | Generate add/drop foreign key migration statements | Boris Kolpackov | 1 | -192/+237 | |
Also add the --fkeys-deferrable-mode option. General schemas generation rework. | |||||
2013-04-10 | Explicitly specify NULL for nullable columns in generated schema | Boris Kolpackov | 1 | -23/+0 | |
2013-04-10 | Generate alter column migration statements | Boris Kolpackov | 1 | -0/+12 | |
2013-04-10 | Generate add/drop index migration statements | Boris Kolpackov | 1 | -0/+15 | |
2013-04-10 | Generate add/drop table migration statements | Boris Kolpackov | 1 | -29/+59 | |
2013-02-09 | Update copyright year | Boris Kolpackov | 1 | -1/+1 | |
2013-02-07 | Use multi-pass table creation in MySQL | Boris Kolpackov | 1 | -25/+204 | |
This deals with table creation order and circular dependencies. Unfortunately, there doesn't seem to be a way in MySQL to drop a foreign key only if it exists without resorting to stored procedures. | |||||
2012-12-12 | Add support for SQL name transformations | Boris Kolpackov | 1 | -12/+0 | |
2012-07-27 | Add support for defining indexes | Boris Kolpackov | 1 | -0/+30 | |
New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index. | |||||
2012-07-27 | Move indexes from model scope to table scope | Boris Kolpackov | 1 | -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-01-29 | Update copyright year | Boris Kolpackov | 1 | -1/+1 | |
2012-01-29 | Remove author field from file header | Boris Kolpackov | 1 | -1/+0 | |
Too much effort to maintain. | |||||
2012-01-26 | Implement support for database schema | Boris Kolpackov | 1 | -3/+19 | |
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. | |||||
2011-10-24 | Generate database schema from database model instead of C++ model | Boris Kolpackov | 1 | -102/+69 | |
We now first create the so-called database model from C++ model and then use that to generate the database schema. The new approach also adds more general support for primary/foreign keys, including multi- column keys. Finally, for MySQL we now generate out-of-line foreign key definitions. Because MySQL does not support deferred constraints checking, deferred foreign keys are written commented out, for documentation. | |||||
2011-10-21 | Use base implementation instead of duplicating code | Boris Kolpackov | 1 | -10/+8 | |
2011-09-19 | Rename generation_failed exception to operation_failed | Boris Kolpackov | 1 | -2/+2 | |
A more generic name is required since it is now used in both generator and processor (and in the future may be used validator). | |||||
2011-07-22 | Add pragma for setting type's or member's default value | Boris Kolpackov | 1 | -0/+79 | |
New pragma: default. New test: default. | |||||
2011-07-19 | New design for NULL semantics | Boris Kolpackov | 1 | -1/+17 | |
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-03-21 | Create indexes in separate SQL statements | Boris Kolpackov | 1 | -1/+1 | |
This is more vendor-neutral. | |||||
2011-03-21 | Separate auto increment from database type | Boris Kolpackov | 1 | -0/+16 | |
2011-03-21 | Split MySQL code generator into common and db-specific parts | Boris Kolpackov | 1 | -0/+53 | |
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. |