clockworklabs / clockworklabs/SpacetimeDB
Rename and possibly refactor the inner types of IterByColRange
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
pub enum IterByColRange<'a, R: RangeBounds<AlgebraicValue>> {
/// When the column in question does not have an index.
Scan(ScanIterByColRange<'a, R>),
/// When the column has an index, and the table
/// has been modified this transaction.
Index(IndexSeekIterInner<'a>),
/// When the column has an index, and the table
/// has not been modified in this transaction.
CommittedIndex(CommittedIndexIter<'a>),
}
The types here could have better names. Also does it need to be explicitly parameterized with a range or should it agnostic to the type of index?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the codebase for IterByColRange, ScanIterByColRange, IndexSeekIterInner, and CommittedIndexIter, then inspect how the R: RangeBounds parameter is used. Determine whether the names and range parameter should change, and consider the impact on each enum variant. Done means the naming and parameterization decision is agreed and consistently applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100