trona icon indicating copy to clipboard operation
trona copied to clipboard

Dry run

Open igorkamyshev opened this issue 4 years ago • 4 comments
trafficstars

Add option for dry run.

igorkamyshev avatar Sep 11 '21 06:09 igorkamyshev

@igorkamyshev Does that mean executing each script and corresponding fallback script in each file?

uka17 avatar Oct 07 '21 20:10 uka17

Nope, I meant, this command should only show logs — what scripts are going to be executed. E.g., name publish --dry-run doesn't publish anything, but it shows a full info about publication.

igorkamyshev avatar Oct 08 '21 01:10 igorkamyshev

@igorkamyshev So, command yarn trona --dry-run should show logs of potential execution. Let's assume we have scripts:

  • 1.sql
  • 2.sql
  • 3.sql

Case 1: First execution of yarn trona --dry-run will just output all scripts considering execution order. Case 2: All subsequent executions yarn trona --dry-run after case 1 will not output anything (no any evolution is being applied) Case 3: 2.sql was changed. yarn trona --dry-run will output degrade and evolution scripts of all upcomming files starting from 2.sql.

Correct?

uka17 avatar Oct 09 '21 16:10 uka17

Yeah. In my mind, it should have the same behaviour as now, just without flushing changes to database.

igorkamyshev avatar Oct 11 '21 07:10 igorkamyshev