-
Notifications
You must be signed in to change notification settings - Fork 76
Cypher25 default language #2372
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
Open
renetapopova
wants to merge
63
commits into
neo4j:cypher-25
Choose a base branch
from
renetapopova:cypher25-default-language
base: cypher-25
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
463a27e
WIP default language docs
mnd999 71a45d4
WIP default language docs
mnd999 83bd0db
WIP default language docs
mnd999 cb48c0b
Update modules/ROOT/pages/database-administration/standard-databases/…
mnd999 aa70f15
Add some sentences about default language and aliases
Hunterness 1a5655d
Add info about default language clauses for aliases
Hunterness f213059
Document ALTER COMPOSITE DATABASE privilege
Hunterness 3c3483e
Fixing smaller review comments
Hunterness f30c68c
See if adding width makes the images visible
Hunterness da55463
Update to handle the different syntaxes depending on cypher version
Hunterness 5a5d54e
Add page for altering composite databases
Hunterness ff5a4c0
Default Cypher version
renetapopova ae4195a
add some labels and minor fixes
renetapopova 4119532
add the missing partial file
renetapopova afd11e5
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova 71d2f0b
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova 8c5c302
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova 642d3a1
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova 4d677dd
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova 71fbf70
update the Database management command syntax intro
renetapopova 79fc1bf
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova c1c5910
Update modules/ROOT/pages/database-administration/standard-databases/…
renetapopova 39ac4e7
Update modules/ROOT/pages/database-administration/standard-databases/…
renetapopova 93b7a0b
apply suggestions from review
renetapopova cf3a24f
apply suggestions from review
renetapopova 0e0ea5a
further improvements
renetapopova 1faf1b8
add Jens suggestions
renetapopova 7ca960c
update the driver settings
renetapopova e43b38d
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova a10c44c
Update modules/ROOT/pages/database-administration/index.adoc
renetapopova da114f7
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 2195640
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 862f8f4
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 53d7a06
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 32e0b71
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 17b4778
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 4b32ad5
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 1434700
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 2df0afc
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova a4a4a19
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 6a66259
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova fa26e30
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 589c50e
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova aef43ac
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova 9577fb0
Update modules/ROOT/pages/database-administration/composite-databases…
renetapopova d2dac99
Update modules/ROOT/pages/database-administration/index.adoc
renetapopova 4e02b7a
Update modules/ROOT/pages/database-administration/syntax.adoc
renetapopova 038f4e7
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova fef39f4
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova a0d73c5
Update modules/ROOT/partials/cypher-versions.adoc
renetapopova b4e1dac
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova bf83fde
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 3fb6171
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova f21bb75
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 60a36c8
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 249909e
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova c9cc0f1
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova 294d81a
apply suggestion from review
renetapopova 4e02968
update the Cypher versions page
renetapopova c20f591
reconcile execute procedures with functions
renetapopova 3b429d0
apply suggestions from review
renetapopova d5f1683
update the `admin` role privileges
renetapopova 7a2d695
update the `admin` role privileges
renetapopova 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
143 changes: 1 addition & 142 deletions
143
modules/ROOT/images/privileges_grant_and_deny_syntax_dbms_privileges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,225 changes: 772 additions & 453 deletions
1,225
modules/ROOT/pages/authentication-authorization/dbms-administration.adoc
Large diffs are not rendered by default.
Oops, something went wrong.
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
38 changes: 38 additions & 0 deletions
38
modules/ROOT/pages/configuration/cypher-version-configuration.adoc
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,38 @@ | ||
[[cypher-version-configuration]] | ||
= Configure the Cypher default version | ||
:page-role: new-2025.06 | ||
:description: How to configure the Cypher default version. | ||
|
||
You can specify the version of Cypher® in which you want to run your queries, choosing between Cypher 5 and Cypher 25. | ||
Cypher 5 is the default version for all newly created databases, however, if you want to take advantage of the new features in Cypher 25, you can set the default version to Cypher 25. | ||
For more information, see xref:introduction.adoc#_cypher_versions[Cypher® versions]. | ||
|
||
To specify the Cypher version, use one of the following options: | ||
|
||
Configure a default Cypher version for the whole DBMS:: | ||
The default language version for the whole DBMS can be configured in the _neo4j.conf_ file using the setting xref:configuration/configuration-settings.adoc#config_db.query.default_language[db.query.default_language] (default value: CYPHER_5). + | ||
Changing this setting in an existing DBMS *does not* affect existing databases. | ||
It only applies to newly created databases unless the version is specified as part of the `CREATE` or `ALTER` database commands. | ||
|
||
Configure a default Cypher version per database:: | ||
The default language for a specific database can be set using a Cypher database administration command with the `SET DEFAULT LANGUAGE` clause when creating the database or by altering the database after it has been created. | ||
This clause determines the default Cypher version for the specified database, overriding the version set in the configuration file. | ||
For example, `CREATE DATABASE mydb SET DEFAULT LANGUAGE CYPHER 25` or `ALTER DATABASE mydb SET DEFAULT LANGUAGE CYPHER 5`. | ||
For more details and examples, see xref:database-administration/syntax.adoc#administration-syntax-database-management[Database management command syntax] and the respective pages in the xref:database-administration/index.adoc[] section. + | ||
If not specified, the default language for the database is set to the default language of the DBMS. | ||
Setting the default language on creation only require the correct `CREATE` privilege. | ||
Modifying the default language for an existing standard database requires the `SET DATABASE DEFAULT LANGUAGE` privilege and for an existing composite database the `ALTER COMPOSITE DATABASE` privilege. | ||
+ | ||
[NOTE] | ||
==== | ||
Setting the default language to `CYPHER 25` ensures that all queries run on that database will use the version of `Cypher 25` that the database is currently running (unless you prepend your queries with `CYPHER 5`, which overrides this default). | ||
For example, a Neo4j 2025.08 database with default language `Cypher 25` will use `Cypher 25` as it exists in Neo4j 2025.08, including any changes introduced in Neo4j 2025.06, 2025.07, and 2025.08. | ||
|
||
Setting the default language to `CYPHER 5` ensures that all queries run on that database will use the version of `Cypher 5` as it existed at the time of the Neo4j 2025.06 release (unless you prepend your queries with `CYPHER 25`, which overrides this default). | ||
Any changes introduced after the 2025.06 release will not affect the semantics of the query. | ||
==== | ||
|
||
Set the Cypher version on a per-query basis:: | ||
The default language for a specific query can be set by prepending the query with the `CYPHER 5` or `CYPHER 25` keyword. + | ||
For example, `CYPHER 25 MATCH (n) RETURN n` or `CYPHER 5 MATCH (n) RETURN n`. | ||
This setting determines the language for the specified query, overriding the default language set in the configuration file and the database. |
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.
Uh oh!
There was an error while loading. Please reload this page.