Skip to content

Split datastore into its own crate#2933

Merged
cloutiertyler merged 6 commits into
masterfrom
tyler/split-datastore-final
Jul 12, 2025
Merged

Split datastore into its own crate#2933
cloutiertyler merged 6 commits into
masterfrom
tyler/split-datastore-final

Conversation

@cloutiertyler

Copy link
Copy Markdown
Contributor

Description of Changes

This PR splits the datastore into its own crate. It makes purely mechanical changes to change imports and make things pub which were pub(crate) and necessarily needed to become public. With two exceptions:

  1. Due to a bug in the compiler I had to use concrete Locking types rather than associated types in one case.
  2. I needed to move Noa's newly added From implementation for HostType which references ModuleKind, a type unknown to the datastore.

API and ABI breaking changes

No API braking changes.

Expected complexity level and risk

1.5 - solely mechanical, but a lot of files touched

Testing

Given the mechanical nature of the changes, I believe our automated tests to be sufficient.

@cloutiertyler cloutiertyler requested a review from Centril July 11, 2025 15:38

@Centril Centril left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. I've highlighted some areas of future improvement. No need to act on any of those now. You can just resolve them to get this merged.

Comment thread crates/core/src/db/mod.rs
Comment thread crates/datastore/src/locking_tx_datastore/datastore.rs
Comment thread crates/datastore/src/locking_tx_datastore/datastore.rs
Comment thread crates/datastore/src/locking_tx_datastore/datastore.rs
Comment thread crates/datastore/src/locking_tx_datastore/datastore.rs
Comment thread crates/datastore/src/locking_tx_datastore/mut_tx.rs
Comment thread crates/datastore/src/locking_tx_datastore/sequence.rs
Comment thread crates/datastore/src/locking_tx_datastore/tx.rs
Comment thread crates/datastore/src/locking_tx_datastore/tx.rs
Comment thread crates/datastore/src/system_tables.rs
@cloutiertyler cloutiertyler enabled auto-merge July 12, 2025 21:05
@cloutiertyler cloutiertyler added this pull request to the merge queue Jul 12, 2025
Merged via the queue into master with commit 20b087c Jul 12, 2025
23 of 31 checks passed
@Centril Centril deleted the tyler/split-datastore-final branch July 14, 2025 17:01
mamcx pushed a commit that referenced this pull request Aug 26, 2025
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