GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Alchemy
  • Docs
  • Reference
  • Blog
  • Compare
  • GitHub
  • Discord
  • CLI
  • Domain
  • AWSlambda · ECS · S3 · DynamoDB
  • Cloudflareworkers · durable objects · R2 · D1
  • Flyapps · machines · volumes
  • GCPcloud run · storage · pub/sub
  • Hetznerservers · networks · volumes

This view

  • Original page
  • New address

GeezerVison is showing alchemy.run — PlanetScale

PlanetScale

PlanetScale is likely the fastest managed Postgres and MySQL you can buy, at a price that undercuts the large clouds. Its Metal clusters run on local NVMe drives instead of network storage. Its MySQL is built on Vitess, which shards a database across many servers so it can outgrow one machine. And every database can be branched like code, so schema changes are tested and deployed like a pull request.

New to PlanetScale? Start with What is PlanetScale?.

A quick example

Section titled “A quick example”

A database, a branch for this stage, and a role to connect with:

alchemy.run.ts
const database = yield* Planetscale.PostgresDatabase("app-db", {
region: { slug: "us-east" },
clusterSize: "PS_10",
migrations: "./migrations",
});
const branch = yield* Planetscale.PostgresBranch("app-branch", { database, isProduction: false });
const role = yield* Planetscale.PostgresRole("app-role", {
database,
branch,
inheritedRoles: ["postgres"],
});

The role’s origin connects anything that speaks Postgres. On Cloudflare, give it to Hyperdrive:

alchemy.run.ts
const hyperdrive = yield* Cloudflare.Hyperdrive.Connection("app-hyperdrive", { origin: role.origin });

Where to start

Section titled “Where to start”

Want to build? Connect your organization in Setup, then give every pull request its own database branch with Preview branches per PR.

Looking for something specific? Every section of these docs is listed below, and every resource is in the generated API reference.

The docs

Section titled “The docs”

Accounts & access

  • Organizations and tokens
  • Credentials

Engines

  • Postgres
  • MySQL

Databases

  • Migrations
  • Backups & restores

Guides

  • Preview branches per PR
  • Drizzle ORM
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.