-
Notifications
You must be signed in to change notification settings - Fork 122
[WIP] Sql Server DDL #231
base: develop
Are you sure you want to change the base?
[WIP] Sql Server DDL #231
Conversation
…togenerated name
…. Options are processed following syntax at microsoft page.
More complex options like |
@ezimuel what are Thanks for the guidance! |
@alextech
|
@froschdesign Great reminders. Sorry, not polished enough. I did use CS fixer script against all files thinking it has the correct coding standard details, which seem to contradict to your review in this and other PR. Are they out of date? |
@alextech |
@froschdesign Thanks for your patience. What to do if code is heavily based on past work? This is not strictly new code. Fixing styles of, say much needed better variable names, will involve going into codebase beyond the scope of PR to keep consistent. This is the worst case I came up on where syntax generation is more of a pattern, than reusable architecture. So if I take it too far from the original MySQL implementation in its style, inconsistencies are introduced which are even harder to deal with than duplication, trying to understand why and how every platform class. looks different. But if I update coding standard in original sources along with updates to keep consistent, then its questionable to have MySQL platform updates in PR for SqlServer, then PostgreSQL. Do you have a procedure for this? |
Update old code and their style / syntax in an another PR. This PR is titled "Sql Server DDL" and has nothing to do with "Update code or formatting style". My points to the code style only belongs to your newly added classes and methods. For example: Again: I will not generate to much unnecessary noise in your PR. Use the coding standard on newly added code and on any parts that you must rework. Ignore the rest. |
@ezimuel is this planned for 2.x release or 3.x ? If later, should I see if conversion to 7.1 is feasible? |
@alextech are you still interested in complete this PR? If so, I think we should schedule it for 3.0. Let me know if you need any assistance. |
@ezimuel I am. I was keeping WIP label while hoping to get wider testing usecases from wider slack community and mathew's weekly newsletter. I was looking for more API usage combinations in unit tests I may not have thought of on my own and missed, and more stress test against actual platform. So that is something you could potentially assist with if can. |
…togenerated name
…. Options are processed following syntax at microsoft page.
…e/sqlserver_ddl # Conflicts: # test/Sql/AbstractSqlTest.php # test/Sql/Platform/SqlServer/Ddl/CreateTableDecoratorTest.php # test/Sql/SqlFunctionalTest.php
Sorry looks like I am horrible at rebasing. I thought it will re-push only commits that had conflicts :( @ezimuel How do new features like this work for PHP 7.2, specifically return types? Can I use return types in my new features and let everything else gradually migrate over time or you rather have consistency and either whole codebase uses types, or none at all. If former, should I do a quick PR into development branch to take 5.6 from travis the way I see some other repositories have? |
…ure/sqlserver_ddl # Conflicts: # test/Sql/Platform/SqlServer/Ddl/AlterTableDecoratorTest.php
…ure/sqlserver_ddl # Conflicts: # test/Sql/Platform/SqlServer/Ddl/AlterTableDecoratorTest.php
9631123
to
0c195e0
Compare
This repository has been moved to laminas/laminas-db. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:
|
This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#79. |
#215, #214 as starting points plus everything else
I am following existing style of specification compilation to make code reviewer easier, even though it is extremely repetitive, eg. altertable decorator vs createtable decorator. I assume maintainers would have already gotten used to looking at current structure, plus current style is known to work and I do not want to add extra uncertainty of reorganizing inheritance hierarchy on top of trying to get syntax correct.
Current DDL implementation is extremely MySQL biased - feels like it is Zend MySql instead of Zend DB, it crashes on simplest of commands, so this project will take some time to complete and will be a large code review. Therefore, probably won't make it next release but still want to show that I am not slacking off too much.