Skip to content

Remove xiter dependency#54

Merged
apstndb merged 2 commits into
mainfrom
chore/drop-xiter
Jun 28, 2026
Merged

Remove xiter dependency#54
apstndb merged 2 commits into
mainfrom
chore/drop-xiter

Conversation

@apstndb

@apstndb apstndb commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Drop spheric.cloud/xiter from go.mod; use github.com/samber/lo and stdlib iter instead.
  • Rewrite RowToListValue with lo.Map / lo.Range.
  • Replace xiter.TryCollect in integration tests with a small local collectRows helper.
  • Delete unused internal/util.go (only referenced xiter helpers).

Test plan

  • go test ./...
  • CI green

Made with Cursor

Replace RowToListValue indexing with lo.Map, collect emulator test rows
with a local helper, and delete unused internal helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request removes the spheric.cloud/xiter dependency, cleans up unused utility functions in the internal package, and replaces xiter usages with standard library iterators or alternative implementations. In resultset/row.go, the use of lo.Map and lo.Range introduces unnecessary overhead and allocations; it is recommended to replace this with a simple, idiomatic for loop and a pre-allocated slice to improve performance and eliminate the github.com/samber/lo dependency.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread resultset/row.go
Replace lo.Map/lo.Range with a simple loop per review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@apstndb

apstndb commented Jun 28, 2026

Copy link
Copy Markdown
Owner Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request removes the external dependency spheric.cloud/xiter and simplifies the codebase. Specifically, it deletes unused helper functions in the internal package, replaces xiter.TryCollect with a local collectRows helper in integration_test.go, and refactors RowToListValue in resultset/row.go to use a standard loop instead of iterator-based collection. I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@apstndb apstndb merged commit 0aa18b4 into main Jun 28, 2026
2 checks passed
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