jhipster / jdl-studio

JDL Studio is an online JHipster Domain Language visual editor
https://start.jhipster.tech/jdl-studio/
Apache License 2.0
405 stars 114 forks source link

Add syntax highlighting for restricted database keywords #6

Open naxty opened 8 years ago

naxty commented 8 years ago

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?

deepu105 commented 8 years ago

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

sendilkumarn commented 8 years ago

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

deepu105 commented 8 years ago

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" notifications@github.com 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 .

MathieuAA commented 8 years ago

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

MathieuAA commented 8 years ago

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