Skip to content

Comments

refactor(services/sqlite): split sqlite service into separate crate#7014

Merged
Xuanwo merged 2 commits intoapache:mainfrom
yueneiqi:refactor/services-sqlite-split-crate
Dec 15, 2025
Merged

refactor(services/sqlite): split sqlite service into separate crate#7014
Xuanwo merged 2 commits intoapache:mainfrom
yueneiqi:refactor/services-sqlite-split-crate

Conversation

@yueneiqi
Copy link
Contributor

@yueneiqi yueneiqi commented Dec 15, 2025

Which issue does this PR close?

Closes #6923.

Rationale for this change

Relates to #6829.

What changes are included in this PR?

This PR extracts the sqlite service implementation from opendal-core into a standalone crate opendal-service-sqlite, while keeping the public surface opendal::services::Sqlite unchanged.

  • Keeps feature flag services-sqlite intact.
  • Moves sqlite-specific dependencies to the new service crate.
  • Removed the old in-tree sqlite service module + its feature/deps from opendal-core.
    • Remove ouroboros:
      • ouroboros was only an optional dep behind opendal-core’s old services-sqlite feature, but the sqlite implementation doesn’t reference it (no ouroboros usage in the sqlite code path), so after extracting sqlite into opendal-service-sqlite there’s no reason to keep that dependency.
      • ouroboros_macro and proc-macro2-diagnostics were pulled in transitively by ouroboros; once ouroboros is gone, Cargo drops those crates from core/Cargo.lock as well.

Are there any user-facing changes?

AI Usage Statement

This PR was primarily authored with Codex (with gpt-5.2) and then hand-reviewed by me. I AM responsible for every change made in this PR. I aimed to keep it aligned with our goals, though I may have missed minor issues. Please flag anything that feels off, I'll fix it quickly.

@yueneiqi yueneiqi requested a review from Xuanwo as a code owner December 15, 2025 04:56
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 15, 2025
@yueneiqi yueneiqi marked this pull request as draft December 15, 2025 05:01
@yueneiqi yueneiqi marked this pull request as ready for review December 15, 2025 05:05
@yueneiqi yueneiqi marked this pull request as draft December 15, 2025 05:13
@yueneiqi yueneiqi force-pushed the refactor/services-sqlite-split-crate branch from d62c67a to b103e9b Compare December 15, 2025 05:54
@yueneiqi yueneiqi marked this pull request as ready for review December 15, 2025 05:59
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you for working on this!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 15, 2025
@Xuanwo
Copy link
Member

Xuanwo commented Dec 15, 2025

The only thing left is to resolve the conflicts.

@Xuanwo Xuanwo merged commit db16bfe into apache:main Dec 15, 2025
332 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core split] Service: sqlite

2 participants