Skip to content

crates/db: Use harmonia types for store paths#1670

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:db-storepath
Apr 14, 2026
Merged

crates/db: Use harmonia types for store paths#1670
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:db-storepath

Conversation

@artemist
Copy link
Copy Markdown
Member

We should use nice types for all core logic. It is easiest to do so when only converting to raw types at i/o boundaries.

This requires passing a StoreDir to database functions, although in the future the DB could store only the hash/name and not the store directory.

this was originally part of #1629, but this is not closely related to the rest of the code and is best done separately.

We should use nice types for all core logic. It is easiest to do so
when only converting to raw types at i/o boundaries.

This requires passing a `StoreDir` to database functions,
although in the future the DB could store only the hash/name and not
the store directory.

Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
@Ericson2314 Ericson2314 enabled auto-merge April 14, 2026 16:29
@Ericson2314 Ericson2314 added this pull request to the merge queue Apr 14, 2026
Merged via the queue into NixOS:master with commit d241cbc Apr 14, 2026
2 checks passed
@Ericson2314 Ericson2314 deleted the db-storepath branch April 14, 2026 16:57
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