Skip to content

Commit f959423

Browse files
committed
tags for the USE clause
1 parent 0a6fd91 commit f959423

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/ROOT/pages/clauses/finish.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[[query-finish]]
44
= FINISH
55

6-
A query ending in `FINISH` instead of `RETURN` has no result but executes all its side effects.
6+
A query ending in `FINISH` -- instead of `RETURN` -- has no result but executes all its side effects.
77
`FINISH` was introduced as part of Cypher's xref:appendix/gql-conformance/index.adoc[].
88

99
The following read query successfully executes but has no results:

modules/ROOT/pages/clauses/use.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,30 @@ CREATE ALIAS `myComposite`.`myConstituent` FOR DATABASE `myDatabase`;
6868
[[query-use-examples-query-graph]]
6969
=== Query a graph
7070

71-
In this example it is assumed that the DBMS contains a database named `myDatabase`:
71+
This example assumes that the DBMS contains a database named `myDatabase`:
7272

7373
.Query
74+
tag::clauses_use[]
7475
[source, cypher]
7576
----
7677
USE myDatabase
7778
MATCH (n) RETURN n
7879
----
80+
end::clauses_use[]
7981

8082
[[query-use-examples-query-composite-database-constituent-graph]]
8183
=== Query a composite database constituent graph
8284

8385
In this example it is assumed that the DBMS contains a composite database named `myComposite`, which includes an alias named `myConstituent`:
8486

8587
.Query
88+
tag::clauses_use_composite[]
8689
[source, cypher]
8790
----
8891
USE myComposite.myConstituent
8992
MATCH (n) RETURN n
9093
----
94+
end::clauses_use_composite[]
9195

9296

9397
[[query-use-examples-query-composite-database-constituent-graph-dynamically]]

0 commit comments

Comments
 (0)