PodRocket

Prisma Next with Will Madden

Mar 5, 2026
Will Madden, an engineering leader on Prisma, explains Prisma Next and the plan to move the core to WebAssembly and TypeScript. They cover migration away from Rust, support for Postgres and upcoming Mongo, extensibility via plugins like PG Vector, and new patterns like collection methods, composable scopes, query linting, and performance guardrails.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Use Layered Checks To Protect SQL From Agents

  • Add layered checks: TypeScript types, schema-backed client validation, and runtime middleware to catch mistakes early.
  • Will describes editors/autocomplete, schema enforcement, and a middleware query linter that flags unsafe queries like deletes without where clauses.
ADVICE

Lint Database Queries With Middleware Rules

  • Use query lint middleware like ESLint to enforce safety rules and surface structured errors to humans and agents.
  • Will describes rules that flag deletes without where clauses and configure errors vs warnings for dev vs prod.
ADVICE

Keep Queries As ASTs For Runtime Validation

  • Build queries as mutable ASTs so you can compose and validate them at runtime even when constructed dynamically.
  • Will explains the query builder produces an AST you can modify and middleware enforces correctness at runtime when type info is lost.
Get the Snipd Podcast app to discover more snips from this episode
Get the app