Skip to content

Iterable run method - #296

Merged
jxs merged 23 commits into
rust-db:mainfrom
superstator:iter_2
Jan 3, 2024
Merged

jxs merged 23 commits into
rust-db:mainfrom
superstator:iter_2

Conversation

@superstator

Copy link
Copy Markdown
Contributor

alternative to #293 w/o a runner-held connection handle

  • adds run_stepwise() method returning an iterator over migrations
  • refactors some migration code to reduce duplication between sync/async implementations and make handling of Target::Fake more consistent

@jxs

jxs commented Dec 11, 2023 •

Copy link
Copy Markdown
Member

thanks! ❤️ I assume it's still a Draft right? feel free to ping me directly when it's ready for a review.

@superstator

Copy link
Copy Markdown
Contributor Author

Yeah, I just wanted to add a few tests before I called it ready.

@superstator
superstator marked this pull request as ready for review December 12, 2023 19:25
@superstator

Copy link
Copy Markdown
Contributor Author

@jxs just lmk if there's anything else you're concerned about here

@jxs jxs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this! ❤️ left a couple minor comments

Comment thread refinery_core/src/runner.rs Resolved
Comment thread refinery_core/src/runner.rs Resolved
Comment thread examples/main.rs Resolved
Comment thread refinery_core/src/runner.rs Resolved
Comment thread refinery_core/src/traits/sync.rs Resolved
Comment thread refinery_core/src/traits/sync.rs Resolved
@jxs jxs mentioned this pull request Dec 25, 2023

@jxs jxs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT! Only one minor comment left

Comment thread examples/main.rs Resolved
@jxs
jxs merged commit 17162c1 into rust-db:main Jan 3, 2024
@jxs

jxs commented Jan 3, 2024

Copy link
Copy Markdown
Member

Thanks for this, and the patience for the review! ❤️

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 this pull request may close these issues.

2 participants