ossuminc / riddl

A compiler for the DDD-based design language RIDDL
https://riddl.tech/
Apache License 2.0
19 stars 6 forks source link

Projector Capabilities #594

Closed AlexWeinstein92 closed 3 months ago

AlexWeinstein92 commented 3 months ago

In projectors themselves multiple records should be allowed. This would allow for multiple tables in a single projector for joining on result.

In on-clauses of projector handlers ideally the following is possible:

on event:

on query:

reid-spencer commented 3 months ago

This raises questions about how we should model projections in RIDDL. Assuming the intended target is a relational database makes it too rigid, in my view. I will try to synthesize a more abstract solution.

reid-spencer commented 3 months ago

@AlexWeinstein92 - some conclusions I've made from considering your suggestion: