feat: add flatten structure for models #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New feature which allows tables/views/functions to be autocompleted out of the box but with addition of schema as prefix.
For example:
![image](https://private-user-images.githubusercontent.com/86059470/304142038-759b69a3-332b-4f0a-bcb0-cd0a41dafed1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTM0NjUsIm5iZiI6MTcyNDE1MzE2NSwicGF0aCI6Ii84NjA1OTQ3MC8zMDQxNDIwMzgtNzU5YjY5YTMtMzMyYi00ZjBhLWJjYjAtY2QwYTQxZGFmZWQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlNzQ0NzYyMzdkOTJmOGUxMmVjMjU5YzFmNTg3MGYzMjY0OWY2YmJkZmY3NTFjOGI0ZDM0MTRjOWEwNGY2MzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GbxIk1kz464aTIB6ptXo6cGj6z0J326iId6Iyldp2mQ)
I've a table in
flights
schema which is calledseattle...
something. Now when I start to writeseattle
it still finds this table but adds the schema as a prefix:so when "accepting" this autocompletion -> the schema.table is accepted
![image](https://private-user-images.githubusercontent.com/86059470/304142194-2b30c601-0803-4ee5-a115-6277c0485746.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNTM0NjUsIm5iZiI6MTcyNDE1MzE2NSwicGF0aCI6Ii84NjA1OTQ3MC8zMDQxNDIxOTQtMmIzMGM2MDEtMDgwMy00ZWU1LWExMTUtNjI3N2MwNDg1NzQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDExMjYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5Y2ZiODhkZGFhYjI4OGQyN2QzMTgwN2EyZDM2NTY1YjIxYzY5NGEyMTlhMWNjNjI5OGNkMWZlZWU1MTc4YmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UKMAtRV3324kZT1iPcrP0sCRQ8bS2YWmyAMG1HU6bv4)
This allows tables/views to be prompted out of the box but without causing ambiguity later on when executing the query.
EDIT
I realize now that I need to make a new video..