| What it is | Type-safe SQL query builder for TypeScript | One schema. Every query type-safe. | Import .sql files into TypeScript with types inferred from your live database, plus SQL-first migrations | SQL query builder for Node.js with migrations and seeds |
| Features | - Compile-time checks that queries only use visible tables and columns
- Result types inferred from selects, joins, subqueries and with clauses
- Dialects for PostgreSQL, MySQL, SQL Server, SQLite and PGlite
- Runs on Node.js, Deno, Bun, Cloudflare Workers and browsers
- sql template tag and dynamic module for queries that can't be typed
| - declarative schema file defining models, fields and relations
- generated type-safe client with autocomplete for every model
- migrations generated from schema changes, refusing destructive changes that would drop data
- Prisma 7: PostgreSQL, MySQL, SQLite, MongoDB, SQL Server and CockroachDB providers
- Prisma 8 (release candidate): native TypeScript rewrite with a public extension interface
- official extensions for pgvector, PostGIS and ParadeDB (experimental)
- npm create prisma scaffolds Next.js, Hono, Nuxt, Astro, NestJS, SvelteKit, TanStack Start or Elysia apps
- agent skills (SKILL.md) installed for Claude Code, Cursor, Copilot Agent and Devin
- All 9 features
| - import .sql files into TypeScript with inferred parameter and row types
- types come from the live database's own analysis of each query
- Postgres, MySQL and SQLite
- schema modeled in schema.sql, with generated or hand-written migrations (Reylo Migrate)
- deploy guides for Neon, Supabase, PlanetScale, Cloudflare D1 and Turso
| - Query builder for PostgreSQL, MySQL, MariaDB, CockroachDB, Redshift, SQLite3, Oracle and SQL Server
- Schema builder
- Migrations and seeds with a CLI
- Transactions and connection pooling
- Streaming queries
- Promise and callback APIs
|