Skip to content

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

Draft
chgeo wants to merge 16 commits into
mainfrom
cql-live-js
Draft

Live queries: multiple models, smarter live JS evaluation#2814
chgeo wants to merge 16 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 [MyModel]
  • Each cds live [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 [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
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.

1 participant