jdl-studio icon indicating copy to clipboard operation
jdl-studio copied to clipboard

Add syntax highlighting for restricted database keywords

Open naxty opened this issue 9 years ago • 5 comments

I added an attribute called 'from' to an entity and wanted to change my database from mongodb to mysql. My JUnit-Tests failed and I did not know why they failed. After some time I remembered I used 'from' as an attribute name. I renamed it and it work. So I thought it would be nice with the jdl studio syntax shows some reversed keywords from database. What do you think?

naxty avatar Apr 04 '16 09:04 naxty

it would be good to have but we would have to maintain a hard coded list of keywords for this :( It would be very long list if we are to take all supported DB into consideration

deepu105 avatar Apr 05 '16 05:04 deepu105

can we do something with this ? https://github.com/jgornick/reservedwordsearch

sendilkumarn avatar Aug 01 '16 17:08 sendilkumarn

That would be too much, may be we could move all reserved words to jhipster-core and refer from there. I could write a simple plugin to lookup that

Thanks & regards, Deepu On 1 Aug 2016 23:04, "Sendil Kumar N" [email protected] wrote:

can we do something with this ? https://github.com/jgornick/reservedwordsearch

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jhipster/jdl-studio/issues/6#issuecomment-236650423, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDlF_AtHKcfUUPMNL5ZPTRc0u_-r092ks5qbi4kgaJpZM4H-6QP .

deepu105 avatar Aug 01 '16 18:08 deepu105

That's already done Deepu, check your inbox =)

MathieuAA avatar Aug 01 '16 21:08 MathieuAA

Update: I'll release everything tomorrow... I have to check something first.

MathieuAA avatar Aug 01 '16 21:08 MathieuAA