Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Support for database names starting with a numeric character is available from N
The `-` (dash) and `.` (dot) characters are not legal in Cypher variables.
Names containing a `-` or that begin with a numeric character must be enclosed within backticks.
For example, `CREATE DATABASE ++`main-db`++` is a valid database name.
In Cypher 25, names that contain a dot (`.`) must be quoted in backticks.
However, using dots in database names is not recommended, as it makes it difficult to determine if a dot is part of the database name or a delimiter for a database alias in a composite database.
A future version of Neo4j may entirely disallow database names with dots.
//Remove the following line and uncomment the rest when Cypher 25 is released.
Database names are the only identifier for which dots do not need to be quoted.
For example `main.db` is a valid database name.
However, this behavior is deprecated due to the difficulty of determining if a dot is part of the database name or a delimiter for a database alias in a composite database.
//In Cypher 25, names that contain a dot (`.`) must be quoted in backticks.
//However, using dots in database names is not recommended, as it makes it difficult to determine if a dot is part of the database name or a delimiter for a database alias in a composite database.
//A future version of Neo4j may entirely disallow database names with dots.
====

It is possible to create an alias to refer to an existing database to avoid these restrictions.
Expand Down
Loading