Creating and managing graphs and views#314
Open
boggle wants to merge 5 commits intoopencypher:masterfrom
Open
Conversation
sherfert
reviewed
Apr 11, 2019
|
|
||
| === Managing views in the catalog | ||
|
|
||
| Views in the catalog can be managed with `COPY`, `RENAME`, `DELETE QUERY` in the same way as graphs. |
There was a problem hiding this comment.
Why the distinction that COPY and RENAME do not require the additional keyword of what is copied/renamed, but DELETE needs that?
|
|
||
| Semantics: | ||
|
|
||
| 1. `<composite statement>` must not be a correlated subqueries. |
| 4. `RETURN GRAPH <view name>` | ||
|
|
||
|
|
||
| == Local declarations |
There was a problem hiding this comment.
This whole section is not so clear to me.
|
|
||
| 1. `<composite statement>` must not be a correlated subqueries. | ||
|
|
||
| 2. An error is raised, if a local declaration would shadow an already exisint local declaration. |
| [source, cypher] | ||
| ---- | ||
| QUERY _myView(args) { | ||
| WITH a, b |
There was a problem hiding this comment.
What is the difference between binding expectations and parameters?
| <composite statement> | ||
| } | ||
| MATCH (x)-[r:KNOWS]->(y) | ||
| CALL PER since _myView(5 WITH x AS a, y AS b) YIELD ... |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is a proposal for creating and managing graphs and views in the catalog and inside the query.
It also covers views and parameterized views.
It is part of the redesign of Cypher for adding support for working with multiple graphs that targets Cypher 10.
View latest version of CIP from associated branch