npx skills add ...
npx skills add prisma/cursor-plugin --skill prisma-database-setup-sqlite
npx skills add prisma/cursor-plugin --skill prisma-database-setup-sqlite
SQLite Setup. Reference when using this Prisma feature.
Configure Prisma with SQLite.
In prisma/schema.prisma:
In prisma.config.ts:
In .env:
prisma/schema.prisma location usually, but in v7 check prisma.config.ts context). Usually relative to the schema file.Prisma ORM 7 uses the query compiler by default, so you must use a driver adapter.
Install adapter and driver:
Instantiate Prisma Client with the adapter:
For edge compatibility or Turso:
Install:
Instantiate:
String[] is not supported directly.Ensure the path in DATABASE_URL is correct relative to where Prisma is running or the schema file. file:./dev.db creates it next to schema.
DATABASE_URL="file:./dev.db"file:PATH