Skip to content

feat: scan_items/scan_values accept wrapped stores (#6) - #10

Merged
thorwhalen merged 1 commit into
masterfrom
feat/scan-wrapped-stores-6
Oct 13, 2026
Merged

thorwhalen merged 1 commit into
masterfrom
feat/scan-wrapped-stores-6

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Closes #6. For a dol-wrapped store (any non-dynamodol Mapping) scan_items/scan_values now return iter(store.items()) / iter(store.values()) (batched, honouring the wrapper's scope and codecs); a bare reader keeps the single-scan path; non-mappings raise TypeError at the call. test_scan_refuses_wrapped_store is replaced by tests of the new behaviour (mocks only).

Adversarial Opus review: no defect introduced; one pre-existing gap (subclass overriding __iter__/__getitem__ takes the raw path) filed as a follow-up issue.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thorwhalen
thorwhalen merged commit e59de6a into master Oct 13, 2026
12 checks passed
@thorwhalen
thorwhalen deleted the feat/scan-wrapped-stores-6 branch October 13, 2026 14:30
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.

scan_items/scan_values: accept wrapped stores now that items()/values() are batched

1 participant