PlanetScale Branch Manager
Visualize your PlanetScale database branch hierarchy and generate pscale CLI commands for every workflow step — branch creation, deploy requests, schema diffs, and connections.
Frequently Asked Questions
What is PlanetScale database branching?▼
PlanetScale branches are isolated copies of your database schema, similar to Git branches for code. You can create a feature branch, safely test schema changes (ALTER TABLE, CREATE INDEX), then open a deploy request to merge those changes into production — without locking tables or causing downtime.
What is a deploy request in PlanetScale?▼
A deploy request is PlanetScale's equivalent of a pull request for database schema changes. It shows the DDL diff between your feature branch and the target (usually main/production), lets your team review the changes, and deploys them using Online Schema Change (OSC) — zero-downtime migrations that don't lock tables.
How does PlanetScale handle zero-downtime migrations?▼
PlanetScale uses gh-ost (GitHub Online Schema Change) under the hood. Instead of ALTER TABLE which locks the table, it creates a shadow copy of the table, applies changes, syncs data via triggers, then swaps the tables atomically. Reads and writes continue uninterrupted throughout the migration.
Can I run raw SQL migrations on a PlanetScale branch?▼
Yes. Connect to your branch via pscale connect or pscale shell, then run DDL statements. However, note that PlanetScale's foreign key constraint support has limitations — they recommend using application-level foreign key enforcement instead of database-level constraints for the online migration system to work correctly.
What is the difference between pscale connect and pscale shell?▼
pscale connect opens a local MySQL-compatible proxy on a port (default 3306) — use this to connect your app or any MySQL client. pscale shell opens an interactive MySQL REPL directly in your terminal — useful for running quick queries, schema commands, or seeding data on a specific branch.
How do I use PlanetScale with Prisma or Drizzle?▼
For Prisma: use the @planetscale/database driver with DATA_PROXY or direct connection. Set databaseUrl in schema.prisma. For Drizzle: use drizzle-orm/planetscale-serverless with @planetscale/database for edge/serverless environments, or drizzle-orm/mysql2 for Node.js servers. Both support the PlanetScale branching workflow.
Related Products
on GumroadDevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
MySQL Query Explainer
Paste any MySQL query and get a plain-English explanation of each execution step plus optimization hints. Covers SELECT, JOIN, GROUP BY, HAVING, UPDATE, DELETE, and CREATE TABLE.
Open free tool →
SQL ERD Diagram Generator
Paste SQL CREATE TABLE statements to instantly visualize your database schema as an entity-relationship diagram. Shows tables, column types, primary keys, foreign keys, and relationships.
Open free tool →
Neon DB Query Builder
Visual query builder for Neon serverless PostgreSQL. Generate raw SQL, @neondatabase/serverless TypeScript, and Drizzle ORM code for SELECT, INSERT, UPDATE, DELETE operations.
Open free tool →
More Free Tools
Related Articles
Essential MySQL Tools for Developers in 2026
The best MySQL tools for developers in 2026. Covers GUI clients, CLI utilities, ORM frameworks, backup tools, and monitoring solutions for MySQL 8.x and MariaDB.
Supabase vs PlanetScale vs Neon: Serverless Postgres in 2026
Compare Supabase, PlanetScale (MySQL), and Neon Postgres for serverless 2026 projects. Feature comparison, free tier limits, pricing, connection pooling, branching, and when to use each platform.
Neon vs PlanetScale vs Turso: Serverless Database Comparison 2026
In-depth comparison of Neon, PlanetScale, and Turso in 2026 — pricing, branching, edge support, latency, connection pooling, migration workflows, and which to choose for your use case.
Best Free Database Management Tools for Developers in 2026
Compare the best free database management tools for developers in 2026: DBeaver, pgAdmin, MongoDB Compass, Adminer, phpMyAdmin, Azure Data Studio, HeidiSQL, TablePlus, Beekeeper Studio, and Metabase.
Best Free Database GUI Tools for Developers in 2026
A complete guide to the best free database GUI tools in 2026. Covers TablePlus, DBeaver, DataGrip, Beekeeper Studio, pgAdmin, and more — with setup tips and feature comparisons for PostgreSQL, MySQL, SQLite, and MongoDB.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →