-
-
Notifications
You must be signed in to change notification settings - Fork 231
Add basic VIEWS support. #34
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
Merged
Merged
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
b820870
Parse CREATE VIEW statements
agarciamontoro 079e419
Resolve Catalog in CreateView node
agarciamontoro 06c7785
Fix maybeList so it does populate the passed list
agarciamontoro 34a9f58
Add a registry for VIEWs to the catalog
agarciamontoro ef19c5f
Parse and analyze database-scoped names for views
agarciamontoro 7de54c5
Plug views' definition when resolving tables
agarciamontoro 4764cae
Document new util functions for parsing
agarciamontoro 676f862
Ensure that keys in view registry are always lowercase
agarciamontoro 0fd0480
Manage OR REPLACE cases in VIEW creation
agarciamontoro d71a9a5
Test new changes from VIEW implementation
agarciamontoro 032fa6c
Improve View and ViewRegistry interfaces
agarciamontoro c2de021
Document and test VIEW-related changes
agarciamontoro 9108273
Fix error returning in parsing function maybeList
agarciamontoro 202d256
Make sure all errors are checked in VIEW-related tests
agarciamontoro d27b3d3
Rename readScopedIdent to readIdentList
agarciamontoro af59652
Modify VIEW-related comments to adhere to Go conventions
agarciamontoro 16413c9
Refactor skipSpaces so it calls readSpaces discarding the count
agarciamontoro 05a2456
Improve the efficiency of readIdentList (HT @erizocosmico)
agarciamontoro 3fee47c
Improve error management in CreateView node
agarciamontoro 660fb4f
Remove redundant comment in test function
agarciamontoro 685c869
Shorten receiver names, adhering to Go conventions
agarciamontoro a006ec7
Check permissions on CREATE VIEW statements
agarciamontoro b513061
Merge pull request #858 from agarciamontoro/feature.views
erizocosmico 02c010c
Make ViewKey struct public
agarciamontoro fc97414
Add Exists and DeleteList to ViewRegistry
agarciamontoro f6ff425
Parse and analyze DROP VIEW statements
agarciamontoro 889bd1e
Test parsing utility readQualifiedIdentifierList
agarciamontoro 38bf07f
Test DropView node
agarciamontoro cb3b61c
Make sure that DropView is not executed without write permissions
agarciamontoro 9b8ecfa
Make qualifiedName type private to parse package
agarciamontoro a217057
Cleanup for vitess parser changes.
d1ad601
Merge remote-tracking branch 'agarciamontoro/feature.views.drop' into…
51d8367
Merge remote-tracking branch 'origin/ld-master' into aaron/views
51e0ced
Fix DROP VIEW parsing.
9da9885
go.mod: Keep go.mod looking like ld-master for now.
89302e3
Merge remote-tracking branch 'origin/ld-master' into aaron/views
a213e83
Fix identation.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
Fix indentation