0.31.3
drizzle-team/drizzle-orm0.31.3Jul 8, 2024by github-actions[bot]
AI Summary
This patch release (0.31.3) fixes two bugs related to RQB behavior with schema naming conflicts and RDS Data API type hints, while introducing a new Prisma-Drizzle extension for seamless integration between Prisma Client and Drizzle ORM.
Key Highlights
- Fixed RQB behavior for tables with identical names in different schemas
- Fixed type hint mismatches when using RDS Data API (#2097)
- New Prisma-Drizzle extension allows using Drizzle with Prisma Client
New Features
- New Prisma-Drizzle extension enabling `prisma.$drizzle.select().from(User)` syntax for combining Prisma and Drizzle
Full Release Notes
### Bug fixed
- 🛠️ Fixed RQB behavior for tables with same names in different schemas
- 🛠️ Fixed [BUG]: Mismatched type hints when using RDS Data API - #2097
### New Prisma-Drizzle extension
```ts
import { PrismaClient } from '@prisma/client';
import { drizzle } from 'drizzle-orm/prisma/pg';
import { User } from './drizzle';
const prisma = new PrismaClient().$extends(drizzle());
const users = await prisma.$drizzle.select().from(User);
```
For more info, check docs: https://orm.drizzle.team/docs/prisma