Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

VScode Intellisense for auto generated models #94

Open
Snowsoul opened this issue Mar 7, 2019 · 2 comments
Open

VScode Intellisense for auto generated models #94

Snowsoul opened this issue Mar 7, 2019 · 2 comments

Comments

@Snowsoul
Copy link

Snowsoul commented Mar 7, 2019

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:

  1. 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

  1. I would like to get the same column name suggestions inside get's string parameter.

screenshot 2019-03-07 at 14 20 59

@PhilWaldmann
Copy link
Owner

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.

@Snowsoul
Copy link
Author

Snowsoul commented Mar 7, 2019

Awesome, looking forward to that 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants