Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle: support tracked relations #252

Open
erichanson opened this issue Jan 18, 2023 · 0 comments
Open

bundle: support tracked relations #252

erichanson opened this issue Jan 18, 2023 · 0 comments

Comments

@erichanson
Copy link
Member

erichanson commented Jan 18, 2023

Right now, every row a bundle tracks has to be explicitly tracked via tracked_row_add(). However, if you just want to track all rows in a particular table, a reasonable scenario, there's no way to do that with a single rule. Add support for tracked relations.

function bundle.tracked_relation_add(meta.relation_id) tracks an entire table (or view for that matter, as long as it has a unique pk), and inserts into a bundle.tracked_relation table. The bundle.tracked_row view would need to look at bundle.tracked_relation and dynamically add new rows. bundle.stage_row would need to automatically add new rows, I think?

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

No branches or pull requests

1 participant