@prisma/orm-sqlite
The one package a SQLite application installs. It wires the framework, the SQL family, and the SQLite target into a single lazy client, and brings the rest of the stack along as exact-pinned dependencies:
pnpm add @prisma/orm-sqlite
@prisma/orm-sqlite
├── @prisma/orm-framework contracts, components, runtime core
├── @prisma/orm-family-sql SQL contract, lanes, ORM client, runtime
├── @prisma/orm-target-sqlite target descriptor + adapter + driver
└── @prisma/orm-toolchain ORM command family for the `prisma` CLI, emitter, config loader
The driver is Node's built-in node:sqlite, so there is no native module to compile.
temporal-polyfill is a required peer dependency. The control plane, such as the prisma commands, loads it as a fallback Temporal when the runtime has none, and a project that already installs it for its own code has one copy. npm, pnpm and bun install it automatically; with Yarn, add temporal-polyfill to your dependencies.
Entrypoints
| Namespace |
Surface |
/runtime |
sqlite(path) — the lazy query client |
/static |
statically composed runtime for pre-wired deployments |
/config |
defineConfig for prisma.config.ts |
/contract-types |
the types a generated contract.d.ts imports |
/contract-builder |
defineContract and SQLite contract authoring |
/migration, /control |
migration planning and the control client |
/init |
the init contribution prisma orm init --target @prisma/orm-sqlite writes a project from |
A generated contract.d.ts imports every framework, family and target type it names from /contract-types, and a generated migration.ts imports from /migration: the modules this package's defineConfig sets as contract.typesModule and migrations.module. The facade also forwards the namespaces of the packages it is built from, so an application never has to depend on a package it did not install:
| Namespace |
Forwards |
/contract, /contract/* |
@prisma/orm-framework/contract |
/components, /components/* |
@prisma/orm-framework/components |
/family-contract, /family-contract/* |
@prisma/orm-family-sql/contract |
/target/* |
@prisma/orm-target-sqlite/target |
/adapter, /adapter/* |
@prisma/orm-target-sqlite/adapter |
These forward; they do not copy. @prisma/orm-sqlite/contract/types and @prisma/orm-framework/contract/types are the same module, so shared registries and instanceof checks hold across the boundary.
The CLI
This package ships no bin. The ORM commands run inside the unified prisma CLI, which mounts the command family published at @prisma/orm-toolchain/cli.
Responsibilities
Composition only. Every behavior it exposes lives in the platform packages; this package chooses the default combination of them and gives it one name.