-
Notifications
You must be signed in to change notification settings - Fork 2
Tweaks based on our requirements #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When running the ./monaco_editor/package.json "start" script
When there is a table specified in the FROM clause, only suggest unscoped columns from that table. If no table is specified, suggest all columns from all tables.
Only suggest tables and aliases that are in the FROM clause after SELECT keyword, instead of all tables
So instead of showing `catalog1.schema1.table1` all at once after FROM, we'll only show catalog1, and then after a dot, we'll suggest schema1, and only when we have `SELECT * FROM catalog1.schema1.` will be suggest table1. It's a total hack, putting it all in the `createTableCandidates` function, but it works and it's the fastest way to implement this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for recording the intro video, it helped a lot! 👍
packages/server/src/complete/candidates/createTableCandidates.ts
Outdated
Show resolved
Hide resolved
packages/server/src/complete/candidates/createTableCandidates.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, however it's hard to test - how hard is to run it locally and use it in our develop?
f599586
to
f0b5dcb
Compare
@petrfejfar I think I got it running by running Let me know if that worked for you |
f0b5dcb
to
2928b24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 😊
No description provided.