Become a Gold Sponsor
DrizzleORM v0.31.3 发布
Jul 8, 2024

修复的错误

新的 Prisma-Drizzle 扩展

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);

有关更多信息,请查看文档: /docs/prisma