Skip to content

[CDS/CXL] Edit CXL guide#2363

Open
renejeglinsky wants to merge 6 commits intomainfrom
rjegl02/cxlEdit
Open

[CDS/CXL] Edit CXL guide#2363
renejeglinsky wants to merge 6 commits intomainfrom
rjegl02/cxlEdit

Conversation

@renejeglinsky
Copy link
Contributor

@renejeglinsky renejeglinsky commented Feb 4, 2026

You can ignore the changes to the databases guides. They should not have been in this PR/branch.

@renejeglinsky
Copy link
Contributor Author

The cds repl - sql log pattern is only used once. Is it an inconsistency or on purpose?

image

@renejeglinsky
Copy link
Contributor Author

Overall cds repl is only used twice in a codeblock. In all other cases it's CQL. Why is that?

@patricebender
Copy link
Contributor

The cds repl - sql log pattern is only used once. Is it an inconsistency or on purpose?

image

sql log was on purpose in this case, as the code contains more than just an SQL statement but multiple lines of one transaction. But IMO we could also just use SQL to be in line with the rest of the code groups. wdyt @Akatuoro ?

Overall cds repl is only used twice in a codeblock. In all other cases it's CQL. Why is that?

it should always be CQL :)

CAP supports a set of [portable functions](../guides/databases/cap-level-dbs#portable-functions) that can be used in all expressions. The CAP compiler automatically translates these functions to database-specific native equivalents, allowing you to use the same functions across different databases, which greatly enhances portability.

## ref (path expression) { #ref }
## ref — Element References & Path Expressions { #ref }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## ref — Element References & Path Expressions { #ref }
## ref - Path Expressions { #ref }

Currently it's cut off and uses a different hyphen:
Image

@Akatuoro
Copy link
Contributor

Akatuoro commented Feb 4, 2026

The cds repl - sql log pattern is only used once. Is it an inconsistency or on purpose?
image

sql log was on purpose in this case, as the code contains more than just an SQL statement but multiple lines of one transaction. But IMO we could also just use SQL to be in line with the rest of the code groups. wdyt @Akatuoro ?

We can also use SQL here. The retrieval is different, but in the end it is SQL.

Overall cds repl is only used twice in a codeblock. In all other cases it's CQL. Why is that?

it should always be CQL :)

cds repl is always used when we do not focus on the actual CQL.

The first time, we use the Node.js fluent style CQL API (as compared to CQL or the CAP Java fluent style CQL API). This imho always gets confusing when we talk about "CQL", but sometimes we mean the actual language, other times we mean a fluent style API - they may support different things in different ways...... Here we explicitly use the Node.js CQL API because the actual CQL does not support INSERT.

The second time, we run cds.parse.expr which is not CQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants