Skip to content

Commit a52007d

Browse files
authored
(cds 9) Std DB functions by default (#1829)
1 parent f86f488 commit a52007d

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

guides/databases.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,6 @@ The database services guarantee the identical behavior of these operators:
353353
354354
In particular, the translation of `!=` to `IS NOT` in SQLite — or to `IS DISTINCT FROM` in standard SQL, or to an equivalent polyfill in SAP HANA — greatly improves the portability of your code.
355355
356-
::: warning Runtime Only
357-
The operator mappings are available for runtime queries only, but not in CDS files.
358-
:::
359-
360356
361357
### Session Variables {.node}
362358
@@ -926,20 +922,8 @@ Instead, they protect the integrity of your data in the database layer against p
926922
## Standard Database Functions
927923
{ #functions-mappings-for-runtime-queries }
928924
929-
A specified set of standard functions - inspired by [OData](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_StringandCollectionFunctions) and [SAP HANA](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/alphabetical-list-of-functions?locale=en-US) - is supported in a **database-agnostic**, hence portable way, and translated to the best-possible native SQL functions or polyfills.
930-
931-
Those functions are automatically mapped during runtime (Node.js) already today.
932-
To switch on the same mappings for your CDL files, you have to set:
933-
934-
<Config>cds.cdsc.standardDatabaseFunctions = true</Config>
935-
936-
::: tip
937-
this will be the default starting with `@sap/cds-compiler >= 9` and hence is only needed for earlier versions.
938-
:::
925+
A specified set of standard functions - inspired by [OData](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_StringandCollectionFunctions) and [SAP HANA](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/alphabetical-list-of-functions?locale=en-US) - is supported in a **database-agnostic**, hence portable way, and translated to the best-possible native SQL functions or polyfills during runtime (currently only Node.js) and for your CDL files.
939926
940-
<!--
941-
TODO: remove the above with cds9
942-
-->
943927
944928
### OData standard functions
945929

0 commit comments

Comments
 (0)