Skip to content

Commit

Permalink
Merge pull request #303 from gramian/main
Browse files Browse the repository at this point in the history
Improvements resulting from issues
  • Loading branch information
mergify[bot] authored Feb 11, 2025
2 parents 8703a5e + 927e65e commit eb258d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/asciidoc/api/http.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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 <<Studio,Studio>>.

Responses:
Expand Down
4 changes: 2 additions & 2 deletions src/main/asciidoc/sql/SQL-Delete.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ DELETE FROM <Type>|BUCKET:<bucket>|INDEX:<index> [RETURN <returning>]

* *`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.
* *<<Filtering,`WHERE`>>* 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.
Expand Down
2 changes: 2 additions & 0 deletions src/main/asciidoc/sql/SQL-Functions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<Managing-Dates,Managing Dates>>.

NOTE: The default output format is controlled by the setting <<Settings,`arcadedb.dateFormat`>>.

Syntax: `sysdate( [&lt;format&gt;] [,&lt;timezone&gt;] )`

*Examples*
Expand Down
2 changes: 1 addition & 1 deletion src/main/asciidoc/sql/SQL-Where.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit eb258d7

Please sign in to comment.