Skip to content

Commit 30bb19f

Browse files
Cypher 25 show commands updates (#1090)
* Update createStatement for key constraints * Add optional keyword `PROPERTY` for `SHOW [NODE | REL[ATIONSHIP]] [PROPERTY] UNIQUE[NESS] CONSTRAINTS` filtering * Update return type and default values for some columns for `SHOW TRANSACTIONS` --------- Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 7657599 commit 30bb19f

File tree

4 files changed

+146
-118
lines changed

4 files changed

+146
-118
lines changed

modules/ROOT/pages/clauses/transaction-clauses.adoc

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,28 @@ a| The transaction ID. label:default-output[]
3434
m| STRING
3535

3636
m| currentQueryId
37-
a| The ID of the query currently executing in this transaction, or an empty `STRING` if no query is currently executing. label:default-output[]
37+
a| The ID of the query currently executing in this transaction, or `null` if no query is currently executing. label:default-output[]
3838
m| STRING
3939

4040
m| connectionId
4141
a| The ID of the database connection attached to the transaction or an empty `STRING` for embedded connections. label:default-output[]
4242
m| STRING
4343

4444
m| clientAddress
45-
a| The client address of the connection issuing the transaction or an empty `STRING` if unavailable. label:default-output[]
45+
a| The client address of the connection issuing the transaction or `null` if unavailable. label:default-output[]
4646
m| STRING
4747

4848
m| username
4949
a| The username of the user executing the transaction. label:default-output[]
5050
m| STRING
5151

5252
m| currentQuery
53-
a| The query text of the query currently executing in this transaction, or an empty `STRING` if no query is currently executing. label:default-output[]
53+
a| The query text of the query currently executing in this transaction, or `null` if no query is currently executing. label:default-output[]
5454
m| STRING
5555

5656
m| startTime
5757
a| The time at which the transaction was started. label:default-output[]
58-
m| STRING
58+
m| ZONED DATETIME
5959

6060
m| status
6161
a| The current status of the transaction (`Terminated`, `Blocked`, `Closing`, or `Running`). label:default-output[]
@@ -67,7 +67,7 @@ m| DURATION
6767

6868
m| outerTransactionId
6969
a|
70-
The ID of this transaction's outer transaction, if such exists, otherwise an empty `STRING`.
70+
The ID of this transaction's outer transaction, if such exists, otherwise `null`.
7171
For details, see xref:subqueries/subqueries-in-transactions.adoc[`CALL { ... } IN TRANSACTIONS`].
7272
m| STRING
7373

@@ -76,27 +76,28 @@ a| Any metadata associated with the transaction, or an empty map if there is non
7676
m| MAP
7777

7878
m| parameters
79-
a| A map containing all the parameters used by the query currently executing in this transaction, or an empty map if no query is currently executing.
79+
a| A map containing all the parameters used by the query currently executing in this transaction, or `null` if no query is currently executing.
8080
m| MAP
8181

8282
m| planner
8383
a|
84-
The name of the Cypher planner used to plan the query currently executing in this transaction, or an empty `STRING` if no query is currently executing.
84+
The name of the Cypher planner used to plan the query currently executing in this transaction, or `null` if no query is currently executing.
8585
For details, see xref::planning-and-tuning/query-tuning.adoc#cypher-planner[Cypher planner].
8686
m| STRING
8787

8888
m| runtime
89-
a| The name of the Cypher runtime used by the query currently executing in this transaction, or an empty `STRING` if no query is currently executing. For details, see xref::planning-and-tuning/runtimes/index.adoc[Cypher runtime].
89+
a| The name of the Cypher runtime used by the query currently executing in this transaction, or `null` if no query is currently executing.
90+
For details, see xref::planning-and-tuning/runtimes/index.adoc[Cypher runtime].
9091
m| STRING
9192

9293
m| indexes
93-
a| The indexes utilised by the query currently executing in this transaction, or an empty list if no query is currently executing.
94+
a| The indexes utilised by the query currently executing in this transaction, or `null` if no query is currently executing.
9495
m| LIST<MAP>
9596

9697

9798
m| currentQueryStartTime
98-
a| The time at which the query currently executing in this transaction was started, or an empty `STRING` if no query is currently executing.
99-
m| STRING
99+
a| The time at which the query currently executing in this transaction was started, or `null` if no query is currently executing.
100+
m| ZONED DATETIME
100101

101102
m| protocol
102103
a|
@@ -111,7 +112,7 @@ m| STRING
111112

112113

113114
m| currentQueryStatus
114-
a| The current status of the query currently executing in this transaction (`parsing`, `planning`, `planned`, `running`, or `waiting`), or an empty `STRING` if no query is currently executing.
115+
a| The current status of the query currently executing in this transaction (`parsing`, `planning`, `planned`, `running`, or `waiting`), or `null` if no query is currently executing.
115116
m| STRING
116117

117118
m| statusDetails
@@ -249,8 +250,8 @@ SHOW TRANSACTIONS
249250
|===
250251
| database | transactionId | currentQueryId | connectionId | clientAddress | username | currentQuery | startTime | status | elapsedTime
251252

252-
| "neo4j" | "neo4j-transaction-6" | "query-664" | "" | "" | "" | "SHOW TRANSACTIONS" | "2022-06-14T10:02:45.568Z" | "Running" | PT0.038S
253-
| "neo4j" | "neo4j-transaction-4" | "query-663" | "" | "" | "" | "MATCH (n) RETURN n" | "2022-06-14T10:02:45.546Z" | "Running" | PT0.06S
253+
| "neo4j" | "neo4j-transaction-6" | "query-664" | "" | null | "" | "SHOW TRANSACTIONS" | "2022-06-14T10:02:45.568Z" | "Running" | PT0.038S
254+
| "neo4j" | "neo4j-transaction-4" | "query-663" | "" | null | "" | "MATCH (n) RETURN n" | "2022-06-14T10:02:45.546Z" | "Running" | PT0.06S
254255

255256
10+d|Rows: 2
256257
|===
@@ -325,7 +326,7 @@ SHOW TRANSACTIONS "neo4j-transaction-3"
325326
|===
326327
| database | transactionId | currentQueryId | connectionId | clientAddress | username | currentQuery | startTime | status | elapsedTime
327328

328-
| "neo4j" | "neo4j-transaction-3" | "query-1" | "" | "" | "" | "MATCH (n) RETURN n" | "2021-10-20T08:29:39.423Z" | "Running" | PT2.603S
329+
| "neo4j" | "neo4j-transaction-3" | "query-1" | "" | null | "" | "MATCH (n) RETURN n" | "2021-10-20T08:29:39.423Z" | "Running" | PT2.603S
329330

330331
10+d|Rows: 1
331332
|===

0 commit comments

Comments
 (0)