Skip to content

Try DuckDB in the Ptah Playground

DuckDB is now in the Ptah Playground. Preview schema changes, detect drift, and try versioned migrations in your browser without installing anything.

Ptah helps you plan, review, and apply database migrations. Try in your browser

DuckDB is now available in the Ptah Playground. Open the link to start with DuckDB selected, or choose it in the database picker. You can run Ptah’s real CLI against an in-memory DuckDB database in your browser. There is nothing to install or sign up for.

DuckDB selected in the Ptah Playground. The Change a schema scenario shows
the schema.sql editor, the users and tasks tables in DuckDB, and three users
in the Data pane. The first guided step is a schema drift check.

The playground uses our official DuckDB provider for catalog reads, schema plans, and migrations. The database runs through DuckDB-Wasm. The plan you see comes from Ptah and the provider, and you can inspect the result in the playground’s database pane.

The schema change scenario starts with three users. Add an active column and an email index to schema.sql, then preview the change. Ptah plans two DuckDB statements before anything is applied:

The DuckDB schema preview. The editor highlights a new active column while
the database tree marks it not applied yet. The Plan pane and terminal show an
ALTER TABLE statement and a CREATE INDEX statement from Ptah’s dry run.

After you confirm the change, the playground reads the users back and runs a drift check. All three rows remain, the new column is visible, and Ptah reports no schema drift:

The completed DuckDB schema scenario. The users table still contains Ada,
Grace, and Alan, each with a NULL value in the new active column. The database
tree shows the email index, all five steps are checked, and the terminal ends
with No schema drift detected.

  • Detect drift: change the database directly and see how Ptah reports the difference from schema.sql.
  • Versioned migrations: generate, validate, and apply a migration, then check its status.
  • Free exploration: query the seeded data and try Ptah commands without guided steps.

These routes use DuckDB versions of the existing seed data and schema. The migration route checks the migration hash, but does not offer migration lint because the linter does not yet accept DuckDB as a dialect.

The DuckDB database lives in memory. Reset or reload starts it fresh. Export saves your workspace files, including SQL, but does not include the database. The browser runtime reports DuckDB 1.5.4; the separately installed native provider uses DuckDB 2.0.0.

Open DuckDB in the Ptah Playground.

Put Ptah to work

Example files