Skip to content

Commit

Permalink
Update CypherTypes in procedure/function signatures (#676)
Browse files Browse the repository at this point in the history
We are updating the signatures in the output for SHOW FUNCTIONS and SHOW
PROCEDURES to match the defaults of the new Cypher Types
  • Loading branch information
gem-neo4j authored Sep 20, 2023
1 parent a0060f4 commit e38a9d4
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 164 deletions.
6 changes: 3 additions & 3 deletions modules/ROOT/pages/administration/databases.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ May be lower than current if the DBMS is currently reducing the number of copies

| creationTime
| The date and time at which the database was created.
| DATETIME
| ZONED DATETIME

| lastStartTime
| The date and time at which the database was last started.
| DATETIME
| ZONED DATETIME

| lastStopTime
| The date and time at which the database was last stopped.
| DATETIME
| ZONED DATETIME

| store
a|
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/clauses/call.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The result shows that:
[role="queryresult",options="header,footer",cols="1*<m"]
|===
| +signature+
| +"dbms.listConfig(searchString = :: STRING?) :: (name :: STRING?, description :: STRING?, value :: STRING?, dynamic :: BOOLEAN?, defaultValue :: STRING?, startupValue :: STRING?, explicitlySet :: BOOLEAN?, validValues :: STRING?)"+
| +"dbms.listConfig(searchString = :: STRING) :: (name :: STRING, description :: STRING, value :: STRING, dynamic :: BOOLEAN, defaultValue :: STRING, startupValue :: STRING, explicitlySet :: BOOLEAN, validValues :: STRING)"+
1+d|Rows: 1
|===
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,40 @@ New features are added to the language continuously, and occasionally, some feat
This section lists all of the features that have been removed, deprecated, added, or extended in different Cypher versions.
Replacement syntax for deprecated and removed features are also indicated.


[[cypher-deprecations-additions-removals-5.13]]
== Version 5.13

=== Updated features

[cols="2", options="header"]
|===
| Feature
| Details

a|
label:functionality[]
label:updated[]
[source, cypher, role="noheader"]
----
SHOW FUNCTIONS YIELD *
SHOW PROCEDURES YIELD *
----
a|
Updated the `signatures` column in `SHOW FUNCTIONS` and `SHOW PROCEDURES`.

Procedure signatures now follow the pattern:
`"procedureName(param1 :: TYPE, param2 :: TYPE, .., paramN :: TYPE) :: (returnParam1 :: TYPE, returnParam2, .., returnParamN :: TYPE)"`

The signature for procedures with no return columns now follows the pattern:
`"procedureName(param1 :: TYPE, param2 :: TYPE, .., paramN :: TYPE)"`

Function signatures now follow the pattern:
`"functionName(param1 :: TYPE, param2 :: TYPE, .., paramN :: TYPE) :: TYPE"`

For all available Cypher types, see the section on xref::values-and-types/property-structural-constructed.adoc#types-synonyms[types and their synonyms].

|===

=== New features

[cols="2", options="header"]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/execution-plans/operators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4731,7 +4731,7 @@ Batch size 128
| | +-----------------------------------+----------------+------+---------+----------------+------------------------+-----------+ | |
| +Sort | label ASC | 10 | 4 | 0 | 536 | 0/0 | 0.178 | label ASC | In Pipeline 1 |
| | +-----------------------------------+----------------+------+---------+----------------+------------------------+-----------+------------+---------------------+
| +ProcedureCall | db.labels() :: (label :: STRING?) | 10 | 4 | | | | | | Fused in Pipeline 0 |
| +ProcedureCall | db.labels() :: (label :: STRING) | 10 | 4 | | | | | | Fused in Pipeline 0 |
+-----------------+-----------------------------------+----------------+------+---------+----------------+------------------------+-----------+------------+---------------------+
Total database accesses: ?, total allocated memory: 600
Expand Down
Loading

0 comments on commit e38a9d4

Please sign in to comment.