Skip to content

refactor(schema): replace ColumnIndex newtype with plain usize - #196

Merged
yuly3 merged 2 commits into
mainfrom
refactor/remove-column-index
Jul 8, 2026
Merged

refactor(schema): replace ColumnIndex newtype with plain usize#196
yuly3 merged 2 commits into
mainfrom
refactor/remove-column-index

Conversation

@yuly3

@yuly3 yuly3 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

yuly3 added 2 commits July 8, 2026 02:43
The ColumnIndex newtype required a round-trip through the schema to
obtain, yet provided no validity guarantee: accessors still had to
bounds-check and return errors. Column positions in the public API are
now plain usize, enabling literal positional access like value_at(0).

Schema::from_columns loses its u32-capacity check, which only guarded
the ColumnIndex(u32) representation, and becomes infallible.
Exercises the dynamic typing path against a local mock server: schema
inspection, CellValue variant matching, access by name and by index,
take/take_at, and into_json_object conversion.
@yuly3 yuly3 self-assigned this Jul 7, 2026
@yuly3
yuly3 marked this pull request as ready for review July 8, 2026 01:10
@yuly3
yuly3 merged commit 3c2b5c1 into main Jul 8, 2026
6 checks passed
@yuly3
yuly3 deleted the refactor/remove-column-index branch July 8, 2026 01:10
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.

1 participant