Skip to content

kvstore: a bag of changes to owners, singletons, and indexes#263

Open
nrc wants to merge 8 commits into
mainfrom
nrc/kv-single-owner
Open

kvstore: a bag of changes to owners, singletons, and indexes#263
nrc wants to merge 8 commits into
mainfrom
nrc/kv-single-owner

Conversation

@nrc

@nrc nrc commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Makes the following changes (each change in separate commits):

  • owners are declared as part of the schema rather than set on first use
  • mutating functions leave the store consistent if the user function panics
  • an optimisation to clear a whole index if possible
  • convenience function for specifying an owner just once rather than on every operation
  • return the base key from index-driven operations (kv: index method returns should include base table key #227)
  • store singletons as fields rather than in a map and tie them to a particular store, rather than being 'floating'

closes #227
cc #217

AI declaration: I used Claude for some very mechanical changes. I have reviewed those changes.

@nrc nrc force-pushed the nrc/kv-single-owner branch from fd95298 to 2d94680 Compare July 1, 2026 10:29
@nrc nrc force-pushed the nrc/kv-single-owner branch from 2d94680 to 0216998 Compare July 3, 2026 03:04
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.

kv: index method returns should include base table key

1 participant