Skip to content

Commit 47f233b

Browse files
committed
Update composite example
1 parent 637ecdd commit 47f233b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

modules/ROOT/pages/database-administration/composite-databases/querying-composite-databases.adoc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ The examples featured in this section make use of the two Cypher clauses: link:{
1414

1515
The following set-up is required to recreate the examples on this page:
1616

17+
[.tabbed-example]
18+
====
19+
[role=include-with-cypher-5]
20+
=====
1721
.Create a standard database `movies2022`
1822
[source, cypher]
1923
----
@@ -42,6 +46,40 @@ CREATE ALIAS `cineasts`.`upcoming`
4246
USER neo4j
4347
PASSWORD 'password'
4448
----
49+
=====
50+
[role=include-with-cypher-25 label--new-2025.06]
51+
=====
52+
.Create a standard database `movies2022`
53+
[source, cypher]
54+
----
55+
CREATE DATABASE movies2022
56+
----
57+
58+
.Create a composite database `cineasts`
59+
[source, cypher]
60+
----
61+
CREATE COMPOSITE DATABASE cineasts
62+
----
63+
64+
.Create database alias `cineasts.latest` for a local database in a composite database
65+
[source, cypher]
66+
----
67+
CREATE ALIAS `cineasts.latest`
68+
FOR DATABASE movies2022
69+
----
70+
71+
.Create database alias `cineasts.upcoming` for a remote database in a composite database
72+
[source, cypher]
73+
----
74+
CREATE ALIAS `cineasts.upcoming`
75+
FOR DATABASE upcoming
76+
AT 'neo4j+s://location:7687'
77+
USER neo4j
78+
PASSWORD 'password'
79+
----
80+
=====
81+
====
82+
4583

4684
For more information about composite databases and database aliases in composite databases, see xref:database-administration/composite-databases/concepts.adoc[], and xref:database-administration/aliases/manage-aliases-composite-databases.adoc[].
4785

0 commit comments

Comments
 (0)