8000 feat: prepared queries with MinigrafBindable Swift values (minigraf#181) by adityamukho · Pull Request #13 · project-minigraf/minigraf-swift · GitHub
[go: up one dir, main page]

Skip to content

feat: prepared queries with MinigrafBindable Swift values (minigraf#181) - #13

Merged
adityamukho merged 1 commit into
v3from
feat/181-prepared-ffi
Oct 24, 2026
Merged

adityamukho merged 1 commit into
v3from
feat/181-prepared-ffi

Conversation

@adityamukho
Copy link
Copy Markdown
Contributor

PR 3 (swift) of project-minigraf/minigraf#181 (spec §4.2, §5, §7.1; plan steps 11–14).

  • src/lib.rs copied from feat: prepared queries and MiniGrafError::Api (minigraf#181) minigraf-binding-template#7; core pin and Cargo.lock at 5f2ba46e (minigraf#738).
  • New Sources/MinigrafKit/MinigrafKit+Prepared.swift: a MinigrafBindable protocol adopted by Bool, Int, Int32, Int64, Double, Float, String, UUID (an entity), MiniGrafValue and MiniGrafBindValue, plus pq.execute(["slot": v]) / pq.query(...) taking [String: (any MinigrafBindable)?] (nil is Null).
  • Breaking (v3.0.0): API-category errors are MiniGrafError.Api; MiniGrafError.message covers it.
  • Tests: a #181 section in Tests/swift/main.swift (repeated execution checked per row, every plain type, UUID in entity and value slots, typed values, the cursor, Api with API-017/022/023/024), and testPreparedQuery in the consumer contract. README: a Prepared queries section.

The Rust shim's 33 tests pass on the bench machine. There's no Swift toolchain locally, so this PR's macOS CI jobs are the first compile of the Swift code.

Merge after minigraf-binding-template#7.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Urda7FD9CYYoxdeGGJa11x

…ror.Api (minigraf#181)

Shim from minigraf-binding-template#7 and core pin 5f2ba46e
(minigraf#738). MinigrafKit+Prepared.swift: pq.execute(["slot": v]) /
pq.query(...) over MinigrafBindable (Bool, Int*, Double, Float, String,
UUID, MiniGrafValue, MiniGrafBindValue; nil is Null).
MiniGrafError.message covers .Api.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Urda7FD9CYYoxdeGGJa11x
@adityamukho
adityamukho merged commit e1c37d8 into v3 Oct 24, 2026
5 checks passed
@adityamukho
adityamukho deleted the feat/181-prepared-ffi branch October 24, 2026 10:45
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