forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Keyword Priority
- This topic is empty.
-
AuthorPosts
-
-
April 21, 2006 at 7:54 pm #9629ronjeremy_69Participant
The auto-complete feature is very nice and has the potential to make typing sql statements much easier. I would like to suggest a feature that would allow you to tweak the order (or priority) of matching keywords when you click “tab”.
A good example is probably the most common keyword used anywhere, “SELECT”. Right now, if i type “SE” in the query editor and press [TAB], “SEC_TO_TIME” appears. I've been using mysql since the late 90's and I don't think I've EVER used the SEC_TO_TIME function, but who knows someone out there might use it all the time. So a feature that would allow me to make “SELECT” the first keyword to show up when I press “SE” [TAB] would be great. Even better, I could configure it so that all i have to do is press “S” [TAB] and then “SELECT” appears.
I have accomplished this by using SQLite to delete all “S” keywords that alphabetically come before “SELECT”, but at a cost of those keywords being lost forever if i did in fact want to use [Ctrl+Enter] to see a list of choices. Posibly an additional “priority” column in the “objects” table in Keywords.db?
-
April 21, 2006 at 8:30 pm #21306RiteshMember
Nice suggestion. Let me think about it and we can start a discussion thread on how to improve the Autocomplete feature.
-
April 21, 2006 at 8:41 pm #21307ronjeremy_69Participant
One other thing i forgot to mention regarding the keywords, is that it looks like there is no “clause” functionality. The biggest example i can think of is the “ORDER BY” clause.
Typing “ORDE” [TAB] inserts “ORDER”, but then you have to go on and type “BY” manually. I feel the entire “ORDER BY” should be a keyword option. Correct me if I'm wrong, but I dont think “ORDER” is used anywhere in mysql without being accompanied by “BY”?
Ritesh wrote on Apr 21 2006, 08:30 PM:Nice suggestion. Let me think about it and we can start a discussion thread on how to improve the Autocomplete feature.awesome, thanks!
-
April 21, 2006 at 8:51 pm #21308peterlaursenParticipant
It is no issue to insert the 'order by' into the database. You can do yourself. Common combinations could be added like 'select * from' etc..
BTW: I think user entries (priority settings, user's own keywords and phrases) should be in a seperate database file ideally …
-
April 21, 2006 at 9:03 pm #21309ronjeremy_69Participantpeterlaursen wrote on Apr 21 2006, 08:51 PM:It is no issue to insert the 'order by' into the database. You can do yourself. Common combinations could be added like 'select * from' etc..
awesome, ill give it a try!
peterlaursen wrote on Apr 21 2006, 08:51 PM:BTW: I think user entries (priority settings, user's own keywords and phrases) should be in a seperate database file ideally …Yep i agree, so you dont have to redo it every new SQLyog version
-
April 22, 2006 at 2:03 pm #21310ronjeremy_69Participant
It's easy to add with SQLite, but the “COALESCE” function seems to be missing.
-
April 22, 2006 at 6:50 pm #21311peterlaursenParticipant
Is COALESCE available with MySQL 3,23 ?
-
April 24, 2006 at 8:03 pm #21312eccoMember
Maybe it is hard to implement, but when in the select/from or where clause it would be nice to be able to autocomplease also the tablenames and fieldnames in the current db.
For fieldnames it is maybe nessasary to first compled the from clause.
greatings Ecco
-
April 24, 2006 at 8:16 pm #21313peterlaursenParticipant
Well there are plans for a Visual SQL builder. I think that will do the trick …
-
-
AuthorPosts
- You must be logged in to reply to this topic.