Developer Week 2022

D1 Database

Run SQL queries from Workers

Build a powerful database with a few simple commands with our Wrangler CLI. Define tables and upload data in just a few clicks without the need to memorize any commands. Define transactions that mix both SQL and JavaScript to make building applications with Workers & D1 so much more flexible and powerful.

With D1, you can:

  • Interact with and push changes to your database directly through Wrangler
  • Store backups of your database in R2 automatically
  • Export your backups to download to your local machine

To get started read the D1 Documentation