Prisma driver adapter for the Node.js built-in SQLite module (node:sqlite), available as v1.0.0. This adapter enables Prisma Client to use the native Node.js SQLite driver instead of third-party libraries like better-sqlite3 or sql.js. It supports synchronous queries, connection pooling, and works with Prisma Migrate. Requires @prisma/client ^7.5.0. Key differentiator: zero external C++ dependencies and native Node.js integration, making it ideal for serverless environments and modern Node.js runtimes.
npm install prisma-adapter-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Instantiate PrismaSQLite adapter with a SQLite URL and pass it to PrismaClient for database operations.
Upgrade Node.js to >=18.19.0 or use a different SQLite adapter like @prisma/adapter-better-sqlite3.
Use the adapter only in synchronous or worker-thread contexts. For async SQLite, consider @prisma/adapter-libsql.
Wrap the path in an object: new PrismaSQLite({ url: 'file:./path/to/db' })Check the changelog before upgrading; stick to documented options.
Specify a file path for the SQLite database, e.g., 'file:./dev.db'.
Run `npm install prisma-adapter-sqlite` or add it to your package.json.
Use `import { PrismaSQLite } from 'prisma-adapter-sqlite'` instead of a default import.Instantiate PrismaSQLite before creating PrismaClient: `const adapter = new PrismaSQLite({ url: '...' });`Upgrade Node.js to >=18.19.0 or use a polyfill like @prisma/adapter-better-sqlite3.
Run `npx prisma migrate dev` or `npx prisma db push` to create the database schema.