Creates a PGlite adapter than can be used with the PrismaClient constructor. This will create a
new PGlite database on your file system, if one does not already exist, and push your schema to
it (similar to prisma db push). This cannot, however, push new migrations to an existing
PGlite database (as prisma db push does with a normal Postgres database).
Ensure that you have the "driverAdapters" preview feature enabled in your Prisma schema.
Creates a PGlite adapter than can be used with the
PrismaClient
constructor. This will create a new PGlite database on your file system, if one does not already exist, and push your schema to it (similar toprisma db push
). This cannot, however, push new migrations to an existing PGlite database (asprisma db push
does with a normal Postgres database).Ensure that you have the
"driverAdapters"
preview feature enabled in your Prisma schema.