diff --git a/guides/databases.md b/guides/databases.md index ab2325c95..19493dba9 100644 --- a/guides/databases.md +++ b/guides/databases.md @@ -353,10 +353,6 @@ The database services guarantee the identical behavior of these operators: 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. -::: warning Runtime Only -The operator mappings are available for runtime queries only, but not in CDS files. -::: - ### Session Variables {.node} @@ -886,20 +882,8 @@ Instead, they protect the integrity of your data in the database layer against p ## Standard Database Functions { #functions-mappings-for-runtime-queries } -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. - -Those functions are automatically mapped during runtime (Node.js) already today. -To switch on the same mappings for your CDL files, you have to set: - -cds.cdsc.standardDatabaseFunctions = true - -::: tip -this will be the default starting with `@sap/cds-compiler >= 9` and hence is only needed for earlier versions. -::: +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. - ### OData standard functions