Skip to content

feat: generate Zero unique keys from Drizzle schemas - #295

Draft
0xcadams wants to merge 3 commits into
mainfrom
0xcadams/zero-1.10
Draft

0xcadams wants to merge 3 commits into
mainfrom
0xcadams/zero-1.10

Conversation

@0xcadams

@0xcadams 0xcadams commented Sep 2, 2026

Copy link
Copy Markdown
Member

What

Add Zero unique key metadata to schemas generated from Drizzle.

Why

Zero 1.10 uses unique keys to type scalar subqueries, but drizzle-zero previously emitted only primary keys.

Changes

  • Generate unique keys from Drizzle unique columns, constraints, and indexes.
  • Add runtime, generated-schema, and type tests.
  • Update drizzle-zero for Zero 1.10 and Node 22.

@socket-security

socket-security Bot commented Sep 2, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​rocicorp/​zero@​1.9.0 ⏵ 1.10.0-canary.177310086100100

View full report

This branch has not been deployed

No deployments
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