Skip to content

WIP ✨ PostgreSQL support#1191

Draft
aaronleopold wants to merge 21 commits into
nightlyfrom
eval/sb/psql
Draft

WIP ✨ PostgreSQL support#1191
aaronleopold wants to merge 21 commits into
nightlyfrom
eval/sb/psql

Conversation

@aaronleopold
Copy link
Copy Markdown
Collaborator

@aaronleopold aaronleopold commented May 30, 2026

This PR piggybacks off of the work done by another (I became aware from #1167, thank you @sbeckstrand for your work) to add PostgreSQL support. There are a few seemingly unrelated changes in the mix, e.g. cargo chef in the Docker build, that on the surface seem fine but I have yet to meaningfully review. I may wind up pruning to keep this a more focused change, but we'll see.

I'm opening this PR a bit early in the hopes to get better visibility and help seeing it to the finish line. There are quite a few assurances I'd want via testing suites before really seriously considering a merge, since my immediate priority is ensuring existing or future SQLite-based installs do not break.

If you have time to help validate and/or improve, please feel free to base PRs into this branch.

Comment thread docs/content/docs/developer/contributing.mdx
@codecov
Copy link
Copy Markdown

codecov Bot commented May 30, 2026

Codecov Report

❌ Patch coverage is 28.68217% with 92 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
core/src/database.rs 0.00% 26 Missing ⚠️
crates/graphql/src/query/library.rs 0.00% 19 Missing ⚠️
crates/graphql/src/mutation/library.rs 0.00% 16 Missing ⚠️
core/src/filesystem/scanner/utils.rs 0.00% 6 Missing ⚠️
core/src/lib.rs 0.00% 4 Missing ⚠️
crates/graphql/src/object/library.rs 0.00% 4 Missing ⚠️
crates/graphql/src/object/media.rs 0.00% 4 Missing ⚠️
crates/graphql/src/query/media.rs 82.60% 4 Missing ⚠️
core/src/job/state.rs 0.00% 3 Missing ⚠️
crates/graphql/src/object/series.rs 0.00% 2 Missing ⚠️
... and 3 more
Files with missing lines Coverage Δ
core/src/config/stump_config.rs 85.14% <ø> (ø)
core/src/opds/v2_0/utils.rs 62.50% <100.00%> (ø)
crates/graphql/src/object/stats.rs 99.11% <100.00%> (ø)
crates/graphql/src/utils.rs 58.33% <100.00%> (+58.33%) ⬆️
core/src/filesystem/scanner/library_scan_job.rs 0.00% <0.00%> (ø)
core/src/filesystem/scanner/walk.rs 0.00% <0.00%> (ø)
crates/graphql/src/object/series.rs 9.40% <0.00%> (ø)
crates/graphql/src/query/series.rs 5.40% <0.00%> (ø)
core/src/job/state.rs 8.00% <0.00%> (ø)
core/src/lib.rs 23.23% <0.00%> (-0.98%) ⬇️
... and 7 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sbeckstrand
Copy link
Copy Markdown

sbeckstrand commented Jun 5, 2026

I can come back to this and make some contributions next week. I was mostly just exploring if I could easily plug in a psql connection setup but found that it required some changes to existing queries. Agree that it would make sense to heavily vet and add testing as I was really in an exploration phase of seeing if I could make it work. Then I stepped away the last week and a half for vacation 😅

Changes to the dockerfile can be reverted entirely (related to the github workflow changes already reverted). I was making attempts to improve the image build time, but no real improvement was made there.

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.

3 participants