Comments
2 comments
-
Each developer has his preferences and I think you need to add a lot of options :-)
Some examples about this code.SELECT field1, field2, (SELECT SUM( value ) FROM tablename t1 WHERE t1.ID = o.ID AND t1.date < '20060101') AS field3 (SELECT SUM( quantity ) FROM tablename t1 WHERE t1.ID = o.ID AND t1.date < '20060101') AS field4 FROM orders o LEFT JOIN orderDetails od ON od.OrderID = o.OrderID
*** 1) Distinguish between subquery and first-level query
You already did something by allowing to write the subquery in the same column, but in general I would prefare to have completely redundant settings between first-level query and eventual subqueries. I want to be able to do the subquery in columns with a selection of parameters different than the one in the external query (WHERE condition and SELECT columns in the same row as the keyword)
*** 2) The option "Column placement" should be differentiated by the kind of keyword: I would like a different setting for SELECT columns (I put them on a new line), FROM / JOIN (table name in the same line), WHERE (may be I like a new line), ORDER BY / GROUP BY (same line if one column, new line if two or more columns).
Moreover, I like to be able to get, for each setting, a different behavior if I have only a column after a keyword or more than one (eventually parameterizing this, but in my case 1 would be good more of the times).
*** 3) Absolutely add an export settings feature
*** 4) I would like to have many settings defined in different configurations, with a way to select a different configuration for each lay out operation (with a default but a shortcut to easily rotate between different configurations or simply selecting another one based on some preview)
It's enough by now... I tried to layout some complex query I have and at current state I wouldn't use this feature very much (except refactoring code written by someone else...).
Marco -
As you mentioned, everyone has his own style. The nearly thirty options we support make the tool highly customizable, but there is place for more. We will certainly consider your new option request and will try to include them in the next beta or the final release.
Many thanks,
Andras
Add comment
Please sign in to leave a comment.
- align the word JOIN in all rows
- align the word ON in all rows
- align the right-most character in the relationship (=, <>, >, <)
- align the periods after the alias on both the left and right side of the relationship
It would look something like this (except for the word wrapping done by the message board):