Repository navigation
v0.6.3
Prisma 5 and 6 support. No breaking changes.
Features
@clientdb/prismaworks with Prisma 5, 6 and 7, with no workaround.- The generator speaks Prisma's generator protocol itself, and the package depends on none of Prisma's packages.
prismais an optional peer (5 or later), so a Prisma 5 app gets nothing of Prisma 7 installed. - Prisma 5's DMMF is converted in its own module:
@db.*native types are read from the schema source (every file of a multi-file schema), anduuid(4)-style default names read asuuid(). - Without the generator,
datamodelSubset(dmmf, { schema })takes the schema source for a Prisma 5 DMMF.
- The generator speaks Prisma's generator protocol itself, and the package depends on none of Prisma's packages.
- The generator stops with a clear error for a datasource that isn't PostgreSQL and for Prisma older than 5.
Fixes
npx clientdb setupandmigrateread.env.localand.envfrom the working directory, as the Prisma CLI does. Variables already set win.