-
Notifications
You must be signed in to change notification settings - Fork 64
Keyword priority #1130
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
Keyword priority #1130
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
42c9afb
cip-190 adjustments and general keyword update
hvub c5979ec
clarification wrt. subqueries
hvub a70e7f5
remove LIMIT 1, as per review
hvub 0575ba4
review suggestions
hvub 5cb24b0
add function names and procedure names back in
hvub 90c6cb0
variables.adoc aktualisieren
hvub 39817d8
Merge branch 'dev' into keyword-priority
JPryce-Aklundh 716647b
bullets
JPryce-Aklundh 91128c5
breaks between letters
JPryce-Aklundh 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,363 @@ | ||
| :description: This section contains a list of reserved keywords in Cypher. | ||
|
|
||
| [[cypher-keywords]] | ||
| = Keywords | ||
|
|
||
| Keywords are words with a predefined meaning in Cypher. | ||
|
|
||
| Keywords are not recommended to be used as identifiers in the following contexts: | ||
|
|
||
| * Variables | ||
| * Labels | ||
| * Relationship types | ||
| * Function names | ||
| * Procedure names | ||
|
|
||
| If a snippet of Cypher can both be a keyword and an unquoted identifier, it is interpreted as a keyword. | ||
|
|
||
| For instance in the following, `true` could be the variable `true` or the Boolean literal value `true`. Since `true` is a keyword, the query returns a single Boolean `true` value. | ||
|
|
||
| .Query | ||
| [source, cypher, role=test-result-skip] | ||
| ---- | ||
| WITH 123 AS true | ||
| RETURN true AS x | ||
| ---- | ||
|
|
||
| .Result | ||
| [role="queryresult",options="header,footer",cols="1*<m"] | ||
| |=== | ||
| | x | ||
|
|
||
| | true | ||
|
|
||
| 1+d|Rows: 1 | ||
| |=== | ||
|
|
||
| If any keyword is quoted in backticks (```), such as `++`true`++`, it is always interpreted as an identifier in the given context. | ||
|
|
||
| .Query | ||
| [source, cypher, role=test-result-skip] | ||
| ---- | ||
| WITH 123 AS true | ||
| RETURN `true` AS x | ||
| ---- | ||
|
|
||
| .Result | ||
| [role="queryresult",options="header,footer",cols="1*<m"] | ||
| |=== | ||
| | x | ||
|
|
||
| | 123 | ||
|
|
||
| 1+d|Rows: 1 | ||
| |=== | ||
|
|
||
|
|
||
| == List of keywords | ||
|
|
||
| The following lists all keywords in Cypher. | ||
|
|
||
| Note that with future functionality, Cypher may be extended with additional keywords. | ||
|
|
||
| === A | ||
| `ACCESS` | ||
| `ACTIVE` | ||
| `ADMIN` | ||
| `ADMINISTRATOR` | ||
| `ALIAS` | ||
| `ALIASES` | ||
| `ALL` | ||
| `ALL_SHORTEST_PATHS` | ||
| `ALTER` | ||
| `AND` | ||
| `ANY` | ||
| `ARRAY` | ||
| `AS` | ||
| `ASC` | ||
| `ASCENDING` | ||
| `ASSIGN` | ||
| `AT` | ||
| `AUTH` | ||
|
|
||
| === B | ||
| `BINDINGS` | ||
| `BOOL` | ||
| `BOOLEAN` | ||
| `BOOSTED` | ||
| `BOTH` | ||
| `BREAK` | ||
| `BUILT` | ||
| `BY` | ||
|
|
||
| === C | ||
| `CALL` | ||
| `CASCADE` | ||
| `CASE` | ||
| `CHANGE` | ||
| `CIDR` | ||
| `COLLECT` | ||
| `COMMAND` | ||
| `COMMANDS` | ||
| `COMPOSITE` | ||
| `CONCURRENT` | ||
| `CONSTRAINT` | ||
| `CONSTRAINTS` | ||
| `CONTAINS` | ||
| `CONTINUE` | ||
| `COPY` | ||
| `COUNT` | ||
| `CREATE` | ||
| `CSV` | ||
| `CURRENT` | ||
|
|
||
| === D | ||
| `DATA` | ||
| `DATABASE` | ||
| `DATABASES` | ||
| `DATE` | ||
| `DATETIME` | ||
| `DBMS` | ||
| `DEALLOCATE` | ||
| `DEFAULT` | ||
| `DEFINED` | ||
| `DELETE` | ||
| `DENY` | ||
| `DESC` | ||
| `DESCENDING` | ||
| `DESTROY` | ||
| `DETACH` | ||
| `DIFFERENT` | ||
| `DISTINCT` | ||
| `DRIVER` | ||
| `DROP` | ||
| `DRYRUN` | ||
| `DUMP` | ||
| `DURATION` | ||
|
|
||
| === E | ||
| `EACH` | ||
| `EDGE` | ||
| `ELEMENT` | ||
| `ELEMENTS` | ||
| `ELSE` | ||
| `ENABLE` | ||
| `ENCRYPTED` | ||
| `END` | ||
| `ENDS` | ||
| `ERROR` | ||
| `EXECUTABLE` | ||
| `EXECUTE` | ||
| `EXIST` | ||
| `EXISTENCE` | ||
| `EXISTS` | ||
|
|
||
| === F | ||
| `FAIL` | ||
| `FALSE` | ||
| `FIELDTERMINATOR` | ||
| `FINISH` | ||
| `FLOAT` | ||
| `FOR` | ||
| `FOREACH` | ||
| `FROM` | ||
| `FULLTEXT` | ||
| `FUNCTION` | ||
| `FUNCTIONS` | ||
|
|
||
| === G, H | ||
| `GRANT` | ||
| `GRAPH` | ||
| `GRAPHS` | ||
| `GROUP` | ||
| `GROUPS` | ||
|
|
||
| `HEADERS` | ||
| `HOME` | ||
|
|
||
| === I | ||
| `ID` | ||
| `IF` | ||
| `IMMUTABLE` | ||
| `IMPERSONATE` | ||
| `IN` | ||
| `INDEX` | ||
| `INDEXES` | ||
| `INF` | ||
| `INFINITY` | ||
| `INSERT` | ||
| `INT` | ||
| `INTEGER` | ||
| `IS` | ||
|
|
||
| === J, K, L, M | ||
| `JOIN` | ||
|
|
||
| `KEY` | ||
|
|
||
| `LABEL` | ||
| `LABELS` | ||
| `LEADING` | ||
| `LIMITROWS` | ||
| `LIST` | ||
| `LOAD` | ||
| `LOCAL` | ||
| `LOOKUP` | ||
|
|
||
| `MANAGEMENT` | ||
| `MAP` | ||
| `MATCH` | ||
| `MERGE` | ||
|
|
||
| === N | ||
| `NAME` | ||
| `NAMES` | ||
| `NAN` | ||
| `NEW` | ||
| `NFC` | ||
| `NFD` | ||
| `NFKC` | ||
| `NFKD` | ||
| `NODE` | ||
| `NODES` | ||
| `NODETACH` | ||
| `NONE` | ||
| `NORMALIZE` | ||
| `NORMALIZED` | ||
| `NOT` | ||
| `NOTHING` | ||
| `NOWAIT` | ||
| `NULL` | ||
|
|
||
| === O | ||
| `OF` | ||
| `OFFSET` | ||
| `ON` | ||
| `ONLY` | ||
| `OPTION` | ||
| `OPTIONAL` | ||
| `OPTIONS` | ||
| `OR` | ||
| `ORDER` | ||
|
|
||
| === P | ||
| `PASSWORD` | ||
| `PASSWORDS` | ||
| `PATH` | ||
| `PATHS` | ||
| `PLAINTEXT` | ||
| `POINT` | ||
| `POPULATED` | ||
| `PRIMARIES` | ||
| `PRIMARY` | ||
| `PRIVILEGE` | ||
| `PRIVILEGES` | ||
| `PROCEDURE` | ||
| `PROCEDURES` | ||
| `PROPERTIES` | ||
| `PROPERTY` | ||
| `PROVIDER` | ||
| `PROVIDERS` | ||
|
|
||
| === R | ||
| `RANGE` | ||
| `READ` | ||
| `REALLOCATE` | ||
| `REDUCE` | ||
| `REL` | ||
| `RELATIONSHIP` | ||
| `RELATIONSHIPS` | ||
| `REMOVE` | ||
| `RENAME` | ||
| `REPEATABLE` | ||
| `REPLACE` | ||
| `REPORT` | ||
| `REQUIRE` | ||
| `REQUIRED` | ||
| `RESTRICT` | ||
| `RETURN` | ||
| `REVOKE` | ||
| `ROLE` | ||
| `ROLES` | ||
| `ROW` | ||
| `ROWS` | ||
|
|
||
| === S | ||
| `SCAN` | ||
| `SEC` | ||
| `SECOND` | ||
| `SECONDARIES` | ||
| `SECONDARY` | ||
| `SECONDS` | ||
| `SEEK` | ||
| `SERVER` | ||
| `SERVERS` | ||
| `SET` | ||
| `SETTING` | ||
| `SETTINGS` | ||
| `SHORTEST` | ||
| `SHORTEST_PATH` | ||
| `SHOW` | ||
| `SIGNED` | ||
| `SINGLE` | ||
| `SKIPROWS` | ||
| `START` | ||
| `STARTS` | ||
| `STATUS` | ||
| `STOP` | ||
| `STRING` | ||
| `SUPPORTED` | ||
| `SUSPENDED` | ||
|
|
||
| === T | ||
| `TARGET` | ||
| `TERMINATE` | ||
| `TEXT` | ||
| `THEN` | ||
| `TIME` | ||
| `TIMESTAMP` | ||
| `TIMEZONE` | ||
| `TO` | ||
| `TOPOLOGY` | ||
| `TRAILING` | ||
| `TRANSACTION` | ||
| `TRANSACTIONS` | ||
| `TRAVERSE` | ||
| `TRIM` | ||
| `TRUE` | ||
| `TYPE` | ||
| `TYPED` | ||
| `TYPES` | ||
|
|
||
| === U | ||
| `UNION` | ||
| `UNIQUE` | ||
| `UNIQUENESS` | ||
| `UNWIND` | ||
| `URL` | ||
| `USE` | ||
| `USER` | ||
| `USERS` | ||
| `USING` | ||
|
|
||
| === V, W, X, Y, Z | ||
| `VALUE` | ||
| `VARCHAR` | ||
| `VECTOR` | ||
| `VERTEX` | ||
|
|
||
| `WAIT` | ||
| `WHEN` | ||
| `WHERE` | ||
| `WITH` | ||
| `WITHOUT` | ||
| `WRITE` | ||
|
|
||
| `XOR` | ||
|
|
||
| `YIELD` | ||
|
|
||
| `ZONE` | ||
| `ZONED` | ||
|
|
||
|
|
||
Oops, something went wrong.
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.
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.
I am fine with your suggestion.
However, if we like my proposal above, we may want to do something like following here: