-
Notifications
You must be signed in to change notification settings - Fork 60
Select Cypher version #1123
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
base: cypher-25
Are you sure you want to change the base?
Select Cypher version #1123
Conversation
…cs-cypher into select_version
…cs-cypher into select_version
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.
Should not be a surprise that I have several comments XD
.Create a database with Cypher 5 as the default language | ||
[source, cypher] | ||
---- | ||
CREATE DATABASE my_database DEFAULT LANGUAGE CYPHER 5 |
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 have linked back to these sections from the operations manual documentation of these commands. There doesn't seem much point documenting it twice.
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 think all sections related to database administration should go to the Operations manual, and here, we can add just one link.
*Existing user databases:* `CYPHER 5` + | ||
*New user databases default:* `CYPHER 5` |
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.
Do we want to add something like this for the remote alias case I mentioned on slack (in addition to having a short sentence about it somewhere as we discussed)
*Existing user databases:* `CYPHER 5` + | |
*New user databases default:* `CYPHER 5` | |
*Existing user databases:* `CYPHER 5` + | |
*Existing non-constituent remote database aliases:* `CYPHER 5` + | |
*New user databases and non-constituent remote database aliases default:* `CYPHER 5` |
(if yes, then we should also update the other two rows in the table)
…cs-cypher into select_version
|
||
To select a different default Cypher version for a database, add `DEFAULT LANGUAGE <language version>` to the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/standard-databases/create-databases/[`CREATE DATABASE`] statement. | ||
This can be done on any Neo4j database. | ||
|
||
Selecting `CYPHER 5` as the default database language ensures that every query run on that database uses the language as it existed at the time of the Neo4j 5.26 LTS release (unless a query is prepended with `CYPHER 25`, which overrides this default). | ||
Any changes introduced after 5.26 will not affect the semantics of the query. | ||
Selecting `CYPHER 5` as the default database language ensures that every query run on that database uses the language as it existed at the time of the Neo4j **TBC** release (unless a query is prepended with `CYPHER 25`, which overrides this default). |
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.
this bit seems more odd when considering CYPHER 5 is the default, it feels more like it's pointing out a difference to the default (probably due to being added to do just that before :P)
This PR includes documentation updates New pages: Updated pages: |
Operations manual PRs mentioned in this PR:
TODO: Add clarifying note on Additions page