Skip to content

Commit af6dc7c

Browse files
authored
Update databases.md
1 parent c492216 commit af6dc7c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

guides/databases.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,11 +1040,14 @@ For example, `startsWith` instead of `startswith` will be passed as-is to the da
10401040
- `mindatetime()`
10411041
Returns the earliest possible point in time: `'0001-01-01T00:00:00.000Z'`.
10421042
1043+
</div>
1044+
10431045
#### Aggregate Functions
10441046
10451047
- `min(x)`, `max(x)`, `sum(x)`, `average(x)`, `count(x)`, `countdistinct(x)`
10461048
Standard aggregate functions used to calculate minimum, maximum, sum, average, count, and distinct count of values.
10471049
1050+
<div class="impl node">
10481051
10491052
### SAP HANA Functions
10501053
@@ -1066,11 +1069,9 @@ For the SAP HANA functions, both usages are allowed: all-lowercase as given abov
10661069
- `nano100_between`
10671070
Computes the time difference between two dates to the precision of 0.1 microseconds. ([link](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/nano100-between-function-datetime?locale=en-US))
10681071
1069-
</div>
1070-
10711072
### Special Runtime Functions
10721073
1073-
In addition to the OData and SAP HANA standard functions, the **CAP runtimes** provides special functions that are only available for runtime queries:
1074+
In addition to the OData and SAP HANA standard functions, the **CAP runtime** provides special functions that are only available for runtime queries:
10741075
10751076
- `search(x, y)`
10761077
Checks whether `y` is contained in any element of `x` (fuzzy matching may apply).
@@ -1083,6 +1084,8 @@ In addition to the OData and SAP HANA standard functions, the **CAP runtimes** p
10831084
- `now()`
10841085
Returns the current timestamp.
10851086
1087+
</div>
1088+
10861089
## Using Native Features { #native-db-functions}
10871090
10881091
In general, the CDS 2 SQL compiler doesn't 'understand' SQL functions but translates them to SQL generically as long as they follow the standard call syntax of `function(param1, param2)`. This allows you to use native database functions inside your CDS models.
@@ -1195,4 +1198,4 @@ Once you have 2 non-HANA local databases, you need to have 2 distinct database c
11951198
11961199
</div>
11971200
1198-
CAP samples demonstrate this in [@capire/bookstore](https://github.com/capire/bookstore/tree/main/db).
1201+
CAP samples demonstrate this in [@capire/bookstore](https://github.com/capire/bookstore/tree/main/db).

0 commit comments

Comments
 (0)