-
Notifications
You must be signed in to change notification settings - Fork 64
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
Logging the data being updated in Verify Step #257
Comments
Hi @kamalsivalingam thanks again for the feedback. I have looked into the code and what are the possibilities. As I understand it, you want the results to be printed out into the CLI after each SQL statement is executed. This feels incredibly complex to implement and might not be possible to support in all other platforms. I know for SQL Sever, we can return the data also after insert/update because it maintains a cache table with reserved name I so far cannot think of any work around to support you on this. A possibility might be just print out the record count affected after every statement. |
@rdagumampan Yes, I think just the record count would itself be great. This way, as part of the validate step, we would know how many records are being updated before we run the actual query |
@kamalsivalingam, in practice I would not use Instead, I suggest using staging/preprod/replica database to isolate the verification runs. |
Just to verify: right now, even if scripts "print" (or equivalent) information during the execution of a script, yuniql isn't sending that to stdout, correct? At least with sqlserver, that's been my experience: "throw" messages will make it to the output/log, but "print" doesn't. |
@kamalsivalingam, excuse for the delay, got some good time while its Easter off in EU. Here's how it's going to look like in the next release. This fix will also will be available in the nightly build. Watch this issue and will comments when its ready to use. Thanks for reaching out! @pwilliams906, |
@rdagumampan Awesome, this is great. Thanks for considering the suggestion and getting it integrated! |
Closed. Released in |
Hi,
We are using Postgres DB and was trying to integrate Yuniql for data deployment in Azure DevOps. Looks like its working as expected.
However I was wondering if there is a way to log the actual data being updated in Verify step. We use "RETURNING *" at the end of the query to show the data after update. It would be nice to see the results, so we can stop the deployment in case its unintentionally updating lot/all records.
Thanks!
The text was updated successfully, but these errors were encountered: