8000 feat: queryMemoryLimit and QRY-012 (minigraf#549) by adityamukho · Pull Request #11 · project-minigraf/minigraf-swift · GitHub
[go: up one dir, main page]

Skip to content

feat: queryMemoryLimit and QRY-012 (minigraf#549) - #11

Merged
adityamukho merged 1 commit into
v3from
feat/549-query-memory-limit
Oct 21, 2026
Merged

adityamukho merged 1 commit into
v3from
feat/549-query-memory-limit

Conversation

@adityamukho
Copy link
Copy Markdown
Contributor

Binding side of project-minigraf/minigraf#549 on v3.

  • OpenOptions(queryMemoryLimit:): the most bytes one query may hold. A query that would hold more throws MiniGrafError.Query with [QRY-012]. Int64.max maps to core's usize::MAX, no limit, the default — as walCheckpointThreshold does.
  • Core v3 pin bumped 97cd4a2a → df7282f1.
  • Pin-bump fallout: core deprecates max_results as an alias of max_derived_facts (#553); the option stays, documented as the alias. Core's uuid no longer enables v4 here, so two unit tests use a fixed UUID.
  • Tests: Rust unit test (64-byte limit → QRY-012 from execute and a cursor, i64::MAX → no limit, -1 → API-017) and a Tests/swift/main.swift block. README documents the option.

Same src/lib.rs as minigraf-python#12, minigraf-java#16, minigraf-android#12. No Swift toolchain locally, so the Swift test runs only in CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_019kY61Y11gcRD91Y6b7jbGT

Add query_memory_limit to OpenOptions: the most bytes one query may hold,
a query that would hold more throwing QRY-012. Int64.max stands for
core's usize::MAX (no limit, the default), as for walCheckpointThreshold.

Bump the core v3 pin to df7282f1. Core now deprecates max_results as an
alias of max_derived_facts; the option stays, documented as the alias.
Core's uuid no longer enables v4 for this target, so the tests use a fixed
UUID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019kY61Y11gcRD91Y6b7jbGT
@adityamukho
adityamukho merged commit 6751d6b into v3 Oct 21, 2026
5 checks passed
@adityamukho
adityamukho deleted the feat/549-query-memory-limit branch October 21, 2026 13:09
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

0