Repository navigation
feat: BrowserDb user functions in the consumer test and README (minigraf#180) - #20
Merged
Merged
Conversation
…raf#180) Pins minigraf v3 to 02243f16 (#757, BrowserDb.registerPredicate / registerAggregate). The browser consumer contract registers a predicate and an aggregate and checks that a function that throws fails the query with QRY-014. The README gains a "User functions" section: examples, value shapes, errors, lifecycle, cost and what a function may call on the database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Urda7FD9CYYoxdeGGJa11x
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 22 of the #180 plan, after core PR 7 (project-minigraf/minigraf#757).
7cdfcb48→02243f16(#757 merge). The commits in between are #306:limit/:order-by(query syntax only, noBrowserDbAPI change) and #180 PRs 1 and 7. The old pin already had every #316 change, so nothing else is needed.consumer-test/browser/contract.js): registers predicateadult?and aggregateproduct(bigint accumulator;finishcheckscount), and checks that a predicate that throws rejects with[QRY-014] user function \boom?` failed: boom`.query/prepare/exportGraph/register*;execute/checkpoint/importGraphstart after the outer query).Browser CI jobs already run on
ubuntu-24.04.Local run (headless Chromium): the consumer test fails at the old pin (
mem.registerPredicate is not a function). At the new pin all 15 checks pass, including the three new ones.Part of project-minigraf/minigraf#180.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Urda7FD9CYYoxdeGGJa11x