Type-safe access and limitless scale with Prisma & PlanetScale
Query data from PlanetScale with Prisma – a next-generation ORM for Node.js and TypeScript.
Why Prisma and PlanetScale?
Non-blocking schema changes
PlanetScale provide a schema change workflow that allows you to update and evolve your database schema without locking or causing downtime for production databases.
Intuitive data modeling
Prisma's modeling language is declarative and lets you intuitively describe your database schema.
Type-safe database client
Prisma Client ensures fully type-safe database queries with benefits like autocompletion - even in JavaScript.
Built for serverless
Avoid the pitfalls of managing servers and deploy your Prisma & PlanetScale project to serverless runtimes for zero ops and limitless scalability.
Easy database migrations
Map your Prisma schema to the database so you don't need to write SQL to manage your database schema.
Filters, pagination & ordering
Prisma Client reduces boilerplates by providing convenient APIs for common database features.
How Prisma and PlanetScale fit together
PlanetScale is a MySQL-compatible, serverless database powered by Vitess, which is a database clustering system for horizontal scaling of MySQL. PlanetScale brings many of the benefits of serverless to the database world, with limitless scaling, consumption based pricing, zero-downtime schema migrations, and a generous free tier.
Prisma is an open-source ORM that integrates seamlessly with PlanetScale and supports the full development cycle. Prisma helps you define your database schema declaratively using the Prisma schema fetch data from PlanetScale with full type safety using Prisma Client. Used together, you get all the established benefits of relational databases in addition to a modern developer experience, type safe querying, zero ops, and infinite scale.
PlanetScale & Prisma is an unrivaled combination, bringing a supreme developer experience and proven scalability.
Our Prisma & PlanetScale Resources
Using Prisma with PlanetScale
This document discusses the concepts behind using Prisma and PlanetScale, explains the commonalities and differences between PlanetScale and other database providers, and leads you through the process for configuring your application to integrate with PlanetScale.
Scaling databases for serverless: Chat with Sugu Sougoumarane
Today, Vitess is the default database for scale at Slack, Roblox, Square, Etsy, GitHub, and many more. Taylor and Sugu dive into Vitess' creation, why MySQL, what makes Vitess so powerful, and why it is a great fit for developers building serverless applications.