From 3449c6c3b3ef68e51bb352b8cb5102e5b2c95493 Mon Sep 17 00:00:00 2001 From: Christian Himpe Date: Tue, 11 Feb 2025 00:39:46 +0100 Subject: [PATCH 1/4] make studio serializer docu explicit --- src/main/asciidoc/api/http.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/asciidoc/api/http.adoc b/src/main/asciidoc/api/http.adoc index e271f046..c999d8de 100644 --- a/src/main/asciidoc/api/http.adoc +++ b/src/main/asciidoc/api/http.adoc @@ -31,7 +31,7 @@ image:../images/edit.png[link="https://github.com/ArcadeData/arcadedb-docs/blob/ | awaitResponse | Optional | set synchronous (true, default) or asynchronous (false) command | limit | Optional | maximum number of results | params | Optional | map of parameters -| serializer | Optional | "graph", "record" +| serializer | Optional | "graph", "record", "studio" |=== [discrete] @@ -668,9 +668,9 @@ The payload, as a JSON, accepts the following parameters: - `limit` (optional) is the maximum number of results to return - `params` (optional), is the map of parameters to pass to the query engine, where parameters are introduced with a colon `:`. - `serializer` (optional) specify the serializer used for the result: -** `graph`: returns as a graph separating vertices from edges +** `graph`: returns a graph separating vertices from edges ** `record`: returns everything as records -** by default it's like record but with additional metadata for vertex records, such as the number of outgoing edges in `@out` property and total incoming edges in `@in` property. +** `studio`: by default it's like record but with additional metadata for vertex records, such as the number of outgoing edges in `@out` property and total incoming edges in `@in` property. This serializer is used by <>. Responses: From 287ff42164f2cb88c0b1d9346558bb2104d14fb4 Mon Sep 17 00:00:00 2001 From: Christian Himpe Date: Tue, 11 Feb 2025 00:40:25 +0100 Subject: [PATCH 2/4] add note about default formatting of the sysdate function --- src/main/asciidoc/sql/SQL-Functions.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/asciidoc/sql/SQL-Functions.adoc b/src/main/asciidoc/sql/SQL-Functions.adoc index 5de3e44a..e5d66423 100644 --- a/src/main/asciidoc/sql/SQL-Functions.adoc +++ b/src/main/asciidoc/sql/SQL-Functions.adoc @@ -1166,6 +1166,8 @@ Returns the current date time. If executed with no parameters, it returns a Date object, otherwise a string with the requested format/timezone. To know more about it, look at <>. +NOTE: The default output format is controlled by the setting <>. + Syntax: `sysdate( [<format>] [,<timezone>] )` *Examples* From e13453b8f33d35f06b39fead246d6af4c9652191 Mon Sep 17 00:00:00 2001 From: Christian Himpe Date: Tue, 11 Feb 2025 00:40:59 +0100 Subject: [PATCH 3/4] add note about s modifier to MATCHES filter --- src/main/asciidoc/sql/SQL-Where.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/sql/SQL-Where.adoc b/src/main/asciidoc/sql/SQL-Where.adoc index 1a0531e4..8eaf5d46 100644 --- a/src/main/asciidoc/sql/SQL-Where.adoc +++ b/src/main/asciidoc/sql/SQL-Where.adoc @@ -78,7 +78,7 @@ And `item` can be: |map|`+CONTAINSKEY+`|true if the map contains at least one key equals to the requested. You can also use `+map.keys() CONTAINS+` in place of it|`+connections CONTAINSKEY 'Luke'+` |map|`+CONTAINSVALUE+`|true if the map contains at least one value equals to the requested. You can also use `+map.values() CONTAINS+` in place of it|`+connections CONTAINSVALUE 10:3+` |string|`+CONTAINSTEXT+`| When used against an indexed field, a lookup in the index will be performed with the text specified as key. When there is no index a simple Java `+indexOf+` will be performed. So the result set could be different if you have an index or not on that field |`+text CONTAINSTEXT 'jay'+` -|string|`+MATCHES+`|Matches the string using a http://www.regular-expressions.info/[Regular Expression]|`pass:[text MATCHES `\b[A-Z0-9.%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b`]` +|string|`+MATCHES+`|Matches the string using a http://www.regular-expressions.info/[Regular Expression]. Use the modifier `(?s)` to make `.` match also newlines.|`pass:[text MATCHES `\b[A-Z0-9.%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b`]` |=== [discrete] From 927e65ee0c2d31ec2f1224b80933044f88eadb95 Mon Sep 17 00:00:00 2001 From: Christian Himpe Date: Tue, 11 Feb 2025 19:48:22 +0100 Subject: [PATCH 4/4] Fix DELETE sub list --- src/main/asciidoc/sql/SQL-Delete.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/sql/SQL-Delete.adoc b/src/main/asciidoc/sql/SQL-Delete.adoc index a59a2df7..d1764ac0 100644 --- a/src/main/asciidoc/sql/SQL-Delete.adoc +++ b/src/main/asciidoc/sql/SQL-Delete.adoc @@ -18,9 +18,9 @@ DELETE FROM |BUCKET:|INDEX: [RETURN ] * *`RETURN`* Defines what values the database returns. It takes one of the following values: -* `COUNT` Returns the number of deleted records. +** `COUNT` Returns the number of deleted records. This is the default option. -* `BEFORE` Returns the number of records before the removal. +** `BEFORE` Returns the number of records before the removal. * *<>* Filters to the records you want to delete. * *`LIMIT`* Defines the maximum number of records to delete. * *`TIMEOUT`* Defines the time period to allow the operation to run, before it times out.