BYOB DB (D1)

BYOB DB (D1)

BYOB DB is our incredibly fast, globally distributed database powered by Cloudflare D1 (SQLite at the edge). It is the default database choice for new BYOB projects.

Connecting BYOB DB

You don't need to manually configure .env variables or connection strings. BYOB handles this entirely through our secure control plane (prim).

To activate or manage your connection, open the Project Control Center (via the Settings button in your workspace) and navigate to the Data & Auth tab.

BYOB DB Connection
BYOB DB Connection
Managing your active database connection in the Project Control Center.

Under the Database connection section, you will see your active connection. If BYOB DB is selected, you can simply click Open BYOB DB to access the database viewer.

⚠️
WARNING

Switching database providers later (e.g., from BYOB DB to Supabase) is not automatic. Plan your migration carefully before changing this setting!

D1 Database Viewer

You don't need a third-party tool to inspect your data. The BYOB Editor includes a built-in D1 Database Viewer.

D1 Database Viewer
D1 Database Viewer
Inspecting tables, rows, and Entity-Relationship (ER) diagrams directly in the editor.

From the viewer, you can:

  • See your current schema structure and ER diagrams.
  • Browse data rows across all your active tables.
  • Verify that AI-generated migrations were applied successfully.