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

Fix consistent behavior with multiple Go statements #20

Closed
carl-berg opened this issue Jul 7, 2021 · 0 comments · Fixed by #21
Closed

Fix consistent behavior with multiple Go statements #20

carl-berg opened this issue Jul 7, 2021 · 0 comments · Fixed by #21

Comments

@carl-berg
Copy link
Owner

Relates to
#19
#17

Currently DataDude will clear instructions between go statements
But the rest of the context is retained meaning previously inserted rows are kept but the go execution will run everything again and also inspect dependencies and generate auto-fk's (if configured) again, even if they have been previously inserted which may not be what you want.

Some ideas:

  • We could use a setting to instruct DD how to behave if a second go is stated
  • Another idea could be to always clear previous state when using Go, but add a Continue method that tries to utilize previous information. Possibly Go method could return an object that has a Continue method...
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 a pull request may close this issue.

1 participant