Database
Managed SQLite at the edge
Managed SQLite databases that live close to your code. Use the built-in SQL editor to query your data, browse tables, and even generate queries with AI assistance.
Database Explorer
SQL Query
Execute SQL queries against your database
Press Cmd/Ctrl + Enter to execute
Results
5 rows returned in 12ms
| id | name | active | |
|---|---|---|---|
| 1 | Alice Johnson | alice@example.com | Yes |
| 2 | Bob Smith | bob@example.com | Yes |
| 3 | Carol White | carol@example.com | No |
| 4 | David Brown | david@example.com | Yes |
| 5 | Eve Davis | eve@example.com | Yes |
Key Features
Table Browser
Browse your database tables and view data with pagination.
SQL Editor
Execute queries directly in the dashboard with syntax highlighting.
AI Query Generation
Describe what you want in natural language and let AI write the SQL.
Edge Replication
Read replicas at the edge for low-latency queries worldwide.
Database Binding
Access your database from Workers with a simple binding.
src/index.ts
export default {
async fetch(request, env) {
const { results } = await env.DB
.prepare("SELECT * FROM users")
.all();
return Response.json({ users: results });
},
};