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, track query performance with SQL Insights, and restore from automated backups.
Database Explorer
Total Queries
Last 24 hours
Avg Exec Time
P95: 12ms
Rows Read
Last 24 hours
Rows Written
Last 24 hours
Top Queries by Execution Time
Most expensive queries in the last 24 hours
| Query | Calls | Avg Time | Rows Read |
|---|---|---|---|
| SELECT * FROM users WHERE active = ? | 12,453 | 2.3ms | 45,231 |
| SELECT * FROM orders WHERE user_id = ? | 8,721 | 4.1ms | 89,234 |
| INSERT INTO sessions (user_id, token) VALUES (?, ?) | 5,432 | 1.2ms | 0 |
| SELECT p.*, c.name FROM products p JOIN categories c... | 3,211 | 8.7ms | 156,432 |
| UPDATE users SET last_login = ? WHERE id = ? | 2,145 | 1.8ms | 2,145 |
Key Features
SQL Insights
Track query performance, identify slow queries, and optimize your database.
Automated Backups
Point-in-time recovery and scheduled snapshots for data protection.
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.
export default {
async fetch(request, env) {
const { results } = await env.DB
.prepare("SELECT * FROM users")
.all();
return Response.json({ users: results });
},
};