Skip to content

Add GetAll (and friends) - #11

Open
bobhy wants to merge 2 commits into
hack-pad:mainfrom
bobhy:get_all
Open

bobhy wants to merge 2 commits into
hack-pad:mainfrom
bobhy:get_all

Conversation

@bobhy

@bobhy bobhy commented Nov 16, 2026 •

Copy link
Copy Markdown

IDBObjectStore.getAll is in the API spec, but not in this library yet. The PR adds GetAll, GetAllKey, and GetAllRangemethods onObjectStoreandIndex`.

It also fixes a nil-pointer panic in ObjectStore.GetAllKeysRange and Index.GetAllKeysRange when query is nil, by returning all (up to maxCount keys).

Caveat: The details are all AI-generated (Gemini). I don't claim detailed authorship.

I'm working on a Go-based Obsidian plugin, and AI assistant pointed out this perf improvement opportunity. I'm passing it on pretty much verbatim.

But it's not just a simple AI slop-drop, either. I did review the unit test changes and I can confirm that all the changes in this PR are being exercised in my plugin and working there as expected.

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