Skip to content

Commit 4cc8fb0

Browse files
committed
Include $dbname in parameter example
1 parent fd47a14 commit 4cc8fb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/ROOT/pages/clustering/databases.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ However, over time, or after several `CREATE DATABASE` commands have been issued
3636
At this point you can run `REALLOCATE DATABASES` to make the cluster re-balance databases across all servers that are part of the cluster.
3737
====
3838

39-
The `CREATE DATABASE` and `ALTER DATABASE` commands support the usage of link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/syntax/parameters[parameters] when providing the number of primaries and secondaries.
39+
The `CREATE DATABASE` and `ALTER DATABASE` commands support the usage of link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/syntax/parameters[parameters] when providing the database, the number of primaries and/or the number of secondaries.
4040

4141
.Parameters
4242
[source,javascript, indent=0]
4343
----
4444
{
45+
"dbname": "foo",
4546
"primary": 1,
4647
"secondary": 2
4748
}
@@ -50,7 +51,7 @@ The `CREATE DATABASE` and `ALTER DATABASE` commands support the usage of link:{n
5051
.Query
5152
[source, cypher, indent=0]
5253
----
53-
CREATE DATABASE foo TOPOLOGY $primary PRIMARIES $secondary SECONDARIES
54+
CREATE DATABASE $dbname TOPOLOGY $primary PRIMARIES $secondary SECONDARIES
5455
----
5556

5657
[[alter-database]]

0 commit comments

Comments
 (0)