Skip to content

feat(sql): adds support for drizzle 1.x - #95

Merged
stalniy merged 2 commits into
mainfrom
feat/drizzle-1.x
Oct 23, 2026
Merged

stalniy merged 2 commits into
mainfrom
feat/drizzle-1.x

Conversation

@stalniy

@stalniy stalniy commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Adds Drizzle 1.x support while retaining compatibility with 0.x from 0.36.2. Both adapters share SQL composition logic, with separate handling for their native relation APIs.

The new @ucast/sql/drizzle-orm/v1.x entry supports defineRelations(), including many-to-many joins and predefined relation filters:

import { createDrizzleInterpreter } from '@ucast/sql/drizzle-orm/v1.x';

const interpret = createDrizzleInterpreter({
  schema: { users, posts, relations },
});

db.select().from(users).where(interpret(condition, 'users'));

Includes shared behavior tests, version-specific relation and casing tests, and ESM/CommonJS exports with matching TypeScript declarations.

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.17391% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.37%. Comparing base (2346057) to head (ed2ffb5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/sql/src/lib/drizzle-orm/base.ts 86.66% 2 Missing and 6 partials ⚠️
packages/sql/src/lib/drizzle-orm/v1.x.ts 97.77% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   91.14%   91.37%   +0.23%     
==========================================
  Files          14       16       +2     
  Lines         508      568      +60     
  Branches      112      128      +16     
==========================================
+ Hits          463      519      +56     
- Misses         31       33       +2     
- Partials       14       16       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stalniy
stalniy merged commit 1b46d93 into main Oct 23, 2026
4 checks passed
@stalniy
stalniy deleted the feat/drizzle-1.x branch October 23, 2026 12:35
@github-actions github-actions Bot mentioned this pull request Oct 23, 2026
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