openrecord
openrecord copied to clipboard
VScode Intellisense for auto generated models
I was wondering if it's possible to return the auto loaded models from a mysql database as a class with the db structure and use that to offer auto completion in VSCode.
Use Cases:
- I would like to get the User table column name suggestions like: user_id, first_name, last_name inside where's object parameter.
![screenshot 2019-03-07 at 14 20 11](https://user-images.githubusercontent.com/7365629/53963086-79b2e880-40e4-11e9-8b55-b3053fc89496.png)
- I would like to get the same column name suggestions inside get's string parameter.
Hi @Snowsoul
that's one thing I want to achieve with the next version. But it's a big rewrite.
Currently the fields per model will be loaded while you are waiting for store.ready()
to finish. In order to get intellisense autocompletion, we need to load all model information in advance and store them as typescript definitions.
Awesome, looking forward to that 😄