Skip to content

feat(dsql): Add DSQL support#5310

Open
Benjscho wants to merge 35 commits intodrizzle-team:betafrom
Benjscho:dsql-support
Open

feat(dsql): Add DSQL support#5310
Benjscho wants to merge 35 commits intodrizzle-team:betafrom
Benjscho:dsql-support

Conversation

@Benjscho
Copy link

@Benjscho Benjscho commented Jan 27, 2026

This PR adds DSQL support to Drizzle, addresses #5248

DSQL is a postgres-wire compatible database, but with some divergence on features. I think the divergence is enough to require a separate dsql-core dialect implementation, but most of that implementation has been copied from pg-core.

Important divergence includes:

  • Unsupported types & Foreign Keys (for now, but DSQL will be expanding support in the future).
  • No mixed DDL/DML transactions
  • Only one DDL per tx
  • OCCs for concurrency control - instead of pessimistic locking, DSQL will reject transactions with an OCC error. I've built in OCC retries to the DSQL client to simplify the experience of working with DSQL

I've added integration tests, although these will require a DSQL cluster endpoint and AWS creds that can access the cluster. I've verified they all pass when run locally

@Benjscho Benjscho changed the title feat(dsql): Add Dsql support feat(dsql): Add DSQL support Jan 28, 2026
This adds support for generate and push for schema management.
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