Skip to content

feat: Allow running CLI commands without requiring DB/Redis connections - #353

Merged
spencewenski merged 1 commit into
mainfrom
gh-235-lazy-db
Aug 28, 2024
Merged

feat: Allow running CLI commands without requiring DB/Redis connections#353
spencewenski merged 1 commit into
mainfrom
gh-235-lazy-db

Conversation

@spencewenski

Copy link
Copy Markdown
Member

Sea-orm added support for lazy database connections. We provide a config field to allow toggling lazy database connections on or off. If lazy connections are enabled, the default run method will allow running CLI commands without requiring the the DB connection to be available (unless the CLI command itself attempts to execute a DB query).

Closes #235

Sea-orm added support for lazy database connections. We provide a config
field to allow toggling lazy database connections on or off. If lazy
connections are enabled, the default `run` method will allow running CLI
commands without requiring the the DB connection to be available (unless
the CLI command itself attempts to execute a DB query).

Closes #235
@codecov

codecov Bot commented Aug 28, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 1.56250% with 63 lines in your changes missing coverage. Please review.

Project coverage is 46.71%. Comparing base (32a98c9) to head (a1732b0).
Report is 1 commits behind head on main.

Files Patch % Lines
src/app/mod.rs 0.00% 63 Missing ⚠️
Files Coverage Δ
src/config/database/mod.rs 89.65% <100.00%> (+0.36%) ⬆️
src/app/mod.rs 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32a98c9...a1732b0. Read the comment docs.

@spencewenski
spencewenski merged commit ffe269a into main Aug 28, 2024
@spencewenski
spencewenski deleted the gh-235-lazy-db branch August 28, 2024 06:25
@github-actions github-actions Bot mentioned this pull request Aug 28, 2024
spencewenski pushed a commit that referenced this pull request Aug 28, 2024
## 🤖 New release
* `roadster`: 0.6.0 -> 0.6.1

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.6.1](roadster-v0.6.0...roadster-v0.6.1)
- 2024-08-28

### Added
- Allow running CLI commands without requiring DB/Redis connections
([#353](#353))

### Other
- Update `typed-builder` and several examples' dependencies
([#352](#352))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Allow running cli commands without db connection

1 participant