Skip to content

Live queries: multiple models, smarter live JS evaluation - #2814

Merged
chgeo merged 33 commits into
mainfrom
cql-live-js
Aug 27, 2026
Merged

Live queries: multiple models, smarter live JS evaluation#2814
chgeo merged 33 commits into
mainfrom
cql-live-js

Conversation

@chgeo

@chgeo chgeo commented Aug 11, 2026

Copy link
Copy Markdown
Member

Equip CQL page w/ live queries. For that, enhance bookshop model w/ Addresses+Towns.

Allow showing CDS model next to query editor:

Off:
image

On:
image

Use worker threads to isolate diverging/conflicting models like the one in cql.md:

  • Models are registered ad-hoc with cds model=MyModel
  • Each cds live model=MyModel block loads the Nodejs stack, incl. vite-plugin-cds and the SQLite in-mem DB, in a dedicated worker thread. Workers for the same model are cached.
  • Sample data can be supplied with csv hidden data=FooBarData:data/...csv and referenced with cds data=FooBarData.
  • The data is shown as separate tabs next to the model when pressing the Show CDS model button.

@chgeo
chgeo force-pushed the cql-live-js branch 3 times, most recently from 2939a1b to e7b23b2 Compare August 13, 2026 13:07
@chgeo
chgeo changed the base branch from cql-live-isolation to main August 17, 2026 13:20
@chgeo chgeo changed the title Live JS evaluation improved Live queries: multiple models, smarter live JS evaluation Aug 17, 2026
@chgeo
chgeo marked this pull request as ready for review August 24, 2026 14:41
@chgeo
chgeo requested review from Akatuoro and removed request for danjoa, renejeglinsky and smahati August 24, 2026 14:41
@chgeo
chgeo added this pull request to the merge queue Aug 27, 2026
Merged via the queue into main with commit c53dc64 Aug 27, 2026
4 checks passed
@chgeo
chgeo deleted the cql-live-js branch August 27, 2026 07:44
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.

6 participants