Skip to content

feat: add list() method to retrieve stored entries#24

Merged
beinan merged 1 commit intolance-format:mainfrom
dcfocus:feat/add-list-method
Jan 21, 2026
Merged

feat: add list() method to retrieve stored entries#24
beinan merged 1 commit intolance-format:mainfrom
dcfocus:feat/add-list-method

Conversation

@dcfocus
Copy link
Copy Markdown
Contributor

@dcfocus dcfocus commented Jan 21, 2026

Adds list(limit, offset) API across all layers:

  • ContextStore::list() in Rust core
  • PyO3 bindings in lib.rs
  • Python Context.list() wrapper

Refactors existing code to share record conversion logic:

  • batch_to_records extracted from batch_to_search_results
  • record_to_py extracted from search_hit_to_py
  • _normalize_record extracted from _normalize_search_hit

Includes unit tests for the new functionality.

Adds list(limit, offset) API across all layers:
- ContextStore::list() in Rust core
- PyO3 bindings in lib.rs
- Python Context.list() wrapper

Refactors existing code to share record conversion logic:
- batch_to_records extracted from batch_to_search_results
- record_to_py extracted from search_hit_to_py
- _normalize_record extracted from _normalize_search_hit

Includes unit tests for the new functionality.
@beinan beinan merged commit 220b3fd into lance-format:main Jan 21, 2026
8 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.

2 participants