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: deconflate stage_row_added from tracked_row #52

Closed
erichanson opened this issue Sep 12, 2016 · 0 comments
Closed

bundle: deconflate stage_row_added from tracked_row #52

erichanson opened this issue Sep 12, 2016 · 0 comments

Comments

@erichanson
Copy link
Member

erichanson commented Sep 12, 2016

Make it so stage_row_add pulls from tracked_row, not just some random row in the db. First you track, then you stage. A tracked row is a row who is within a bundle's scope of concern.

  • bundle.tracked_row_add(bundle_name, schema_name, relation_name, pk_name, pk_value) adds a row to bundle.tracked_row_added table.
  • bundle.tracked_row_added is a table that contains newly tracked rows, which are put there by bundle.tracked_row_add()
  • bundle.tracked_row is a view that unions rows from bundle.head_commit_row, stage_row_added and tracked_row_added.

Now, stage_row_add() should check that the row exists in tracked_row_added.

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

No branches or pull requests

1 participant