Cloudflare D1

Overview

Cloudflare provides fully managed serverless SQLite databases. D1 allows you to build applications that handle large amounts of users at no extra cost. With D1, you can restore your database to any minute within the last 30 days. This guide will help you connect your Cloudflare D1 database to Outerbase.


Prerequisites

Before you begin, ensure you have the following:

  1. An Outerbase account. You can sign up at https://app.outerbase.com if you need an account.

  2. A Cloudflare account. You can sign up at https://dash.cloudflare.com/ if you need an account.

  3. A Cloudflare D1 Database project already set up.


While logged into your Outerbase account, guide yourself to the workspace home page you would like to add your Cloudflare database too. In the top right corner of the page you should see a “New Base” button to get us started.

  1. Click “New Base” at the top right.

  2. Choose “Cloudflare” from the “Connect to your cloud provider” section.

  3. You will be redirected to login to your Cloudflare account that contains the D1 databases you’re looking to connect.

  4. After a successful login, you will be redirected back to Outerbase

  5. From the top select option choose which D1 database you want to connect to Outerbase, then select “Connect to Database”

  6. After you choose your database, you can name your base as it is displayed in Outerbase and continue.

  7. You’re now connected to your Cloudflare D1 database!


Conclusion

You have successfully connected your Outerbase application to your Cloudflare database. This integration allows your application to combine D1’s powerful serverless SQLite capabilities, with Outerbase’s easy-to-use and manage database GUI.

Remember to grant Outerbase access to your resources with the expected access rights before connecting your database.

For more detailed guidance and troubleshooting, consult the Cloudflare documentation.

Updated on