Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .vitepress/theme/components/cds-playground/runners.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ async function evalJS(code) {

async function cdsQL(query) {
const cds = await initialized;
const cqn = cds.ql(query);

const { result, formatted } = await sql.trace(() => cds.ql(query));
const { result, formatted } = await sql.trace(() => cds.db.run(cqn));
return [
{ value: result, kind: 'json', name: 'Result' },
{ value: formatted, kind: 'sql', name: 'SQL'}
{ value: formatted, kind: 'sql', name: 'SQL'},
{ value: cqn, kind: 'json', name: 'CQN' },
Comment thread
Akatuoro marked this conversation as resolved.
];
}

Expand Down