-
Couldn't load subscription status.
- Fork 110
Add VIEWs support #858
Add VIEWs support #858
Conversation
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Trying to make golangcibot happy Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
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.
Whoah, that was a long read. Good job! Overall it looks really good, just some minor nitpicks to make code more idiomatic and a couple of suggestions and lgtm.
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Before, this function read the string containing all the identifiers *and* the separators between them, splitting the string afterwards to retrieve the list. Now, the list of identifiers is built on the go. Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
ccdbd17 to
3fee47c
Compare
We can discard the error if it was thrown because the view does not exist. But we don't know if the Delete function will throw different errors in the future, so it is safer to discard only the one we are sure about. Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
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.
Make sure that create view statement can be only executed by users with write permissions.
I've changed the base of the PR to feature/views branch. All the views PRs will be merged there and then feature/views to master to avoid having partial functionality in master.
@agarciamontoro the follow up PRs should be made against that branch.
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Make sure that create view statement can be only executed by users with write permissions.
Done in a006ec7
Uh oh!
There was an error while loading. Please reload this page.
This PR adds basic support for VIEWs. In particular:
CREATE [OR REPLACE} [db_name.]view_name AS select_exprI wanted to publish this PR as it is because it was getting too big, but the following tasks are still pending for a future PR:
Fixes #53.