Skip to content

Fix D1 constraint reflection#27

Merged
CollierKing merged 1 commit into
mainfrom
fix/reflection-constraints
Jun 21, 2026
Merged

Fix D1 constraint reflection#27
CollierKing merged 1 commit into
mainfrom
fix/reflection-constraints

Conversation

@CollierKing

Copy link
Copy Markdown
Owner

Summary

Fixes the two D1 reflection gaps called out in PR #26 and prepares the patch release that includes the composite primary-key fix.

  • Adds referred_schema to foreign key reflection results.
  • Implements get_unique_constraints() for inline and named table-level unique constraints.
  • Keeps explicit unique indexes reflected through get_indexes() rather than unique constraint reflection.
  • Adds unit, REST API integration, and Worker integration coverage for constraint reflection.
  • Bumps the package version and changelog to 0.3.11 to include the composite primary-key DDL fix plus these reflection fixes.

Validation

  • uv run ruff format . --diff
  • uv run ruff check .
  • uv run mypy src/
  • uv run pytest --disable-socket --allow-unix-socket tests/ -q -> 24 passed
  • REST API integration file -> 81 passed
  • Worker integration file with Node v22.17.1 on PATH -> 66 passed
  • uv build
  • uv run pre-commit run --all-files

@CollierKing CollierKing marked this pull request as ready for review June 21, 2026 21:42
@CollierKing CollierKing merged commit 2150e97 into main Jun 21, 2026
8 checks passed
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