Skip to content

Commit f568666

Browse files
document statement types (#1213)
Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent ad52ea2 commit f568666

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

modules/ROOT/pages/clauses/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Duplicates are retained.
175175
| Clause | Description
176176

177177
m| xref::clauses/use.adoc[USE]
178-
| Determines which graph a query, or query part, is executed against. label:fabric[]
178+
| Determines which graph a query, or query part, is executed against.
179179

180180
|===
181181

modules/ROOT/pages/introduction/cypher-neo4j.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,19 @@ Database transactions opened inside a DBMS-level transaction are committed or ro
137137
DBMS transactions have the following limitations:
138138

139139
* Only one database can be written to in a DBMS transaction.
140-
* Cypher operations fall into the following main categories:
140+
* Queries executed in the same transaction must either be of the same statement type, or a combination of schema modifications and read queries. The following statement types exist:
141+
** Administration commands contain xref:clauses/index.adoc#administration-clauses[administration clauses], such as `CREATE DATABASE movies`
142+
** Schema modifications, which contain xref:clauses/index.adoc#index-and-constraint-clauses[index and constraint clauses],
143+
such as `CREATE CONSTRAINT ...`
144+
** Write queries, which contains xref:clauses/index.adoc#writing-clauses[writing clauses], such as `CREATE (n) RETURN n`
145+
** Read queries, which contain none of the above clauses, such as `MATCH (n) RETURN n`
141146

142-
** Operations on graphs.
143-
** Schema commands.
144-
** Administration commands.
145-
146-
It is not possible to combine any of these workloads in a single DBMS transaction.
147+
[NOTE]
148+
====
149+
Calling procedures on the system database does not count as an administration command.
150+
The query will be categorized either as a read or write query depending on the defined mode of the procedure.
151+
For more information, see the link:{neo4j-docs-base-uri}/operations-manual/current/procedures[Operations Manual -> Procedures.]
152+
====
147153

148154
=== ACID compliance
149155

0 commit comments

Comments
 (0)