8000 docs: fix Rust prepared-query and database-open examples by adityamukho · Pull Request #98 · project-minigraf/minigraf-docs · GitHub
[go: up one dir, main page]

Skip to content

docs: fix Rust prepared-query and database-open examples - #98

Merged
adityamukho merged 2 commits into
mainfrom
fix/884-prepared-entity-ids
Nov 14, 2026
Merged

adityamukho merged 2 commits into
mainfrom
fix/884-prepared-entity-ids

Conversation

@adityamukho
@adityamukho adityamukho commented Nov 13, 2026 •
Copy link
Copy Markdown
Contributor

Rust examples used undefined entity IDs, nonexistent OpenOptions::open calls and a nonexistent BindValue::String variant. Define keyword IDs through Minigraf's public EntityId alias, explain their deterministic UUIDv5 mapping, use path(...).open() or open_memory(), and document BindValue::Val(Value::String(..)). Correct the January 15, 2026 timestamp, keep the live-store example in its own empty database, and create the parent directory for session files.

Validation:

  • Compiled and executed the reference example and all six Rust examples from the affected tutorial/cookbook pages against both Minigraf main and v3. Temporary harnesses supply Result-returning wrappers, fixture data, and the illustrative agent_queries/session_id values; assertions check the tutorial query results.
  • Built the documentation site with link validation and checked the rendered reference on v2 and v3.
  • Confirmed v2.0.0 already exports EntityId with UUIDv5 enabled.
  • git diff --check passed.

Claude Opus reviewed the patch, identified related example errors, and reviewed the corrections before the follow-up push. Final verdict: clean, with all actionable findings resolved. An unrelated pre-existing MiniGrafDb naming nit remains outside this change.

Related to project-minigraf/minigraf#884; core README fixes are project-minigraf/minigraf#893 (main) and project-minigraf/minigraf#892 (v3).

@adityamukho adityamukho changed the title docs: define entity IDs in the Rust prepared-query example docs: fix Rust prepared-query and database-open examples Nov 13, 2026
@adityamukho
adityamukho marked this pull request as ready for review November 13, 2026 14:36
@adityamukho
adityamukho merged commit d2e32b3 into main Nov 14, 2026
2 checks passed
@adityamukho
adityamukho deleted the fix/884-prepared-entity-ids branch November 14, 2026 02:15
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