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

31,962

Last 24 hours

Avg Exec Time

3.2ms

P95: 12ms

Rows Read

293K

Last 24 hours

Rows Written

7,621

Last 24 hours

Top Queries by Execution Time

Most expensive queries in the last 24 hours

QueryCallsAvg TimeRows Read
SELECT * FROM users WHERE active = ?12,4532.3ms45,231
SELECT * FROM orders WHERE user_id = ?8,7214.1ms89,234
INSERT INTO sessions (user_id, token) VALUES (?, ?)5,4321.2ms0
SELECT p.*, c.name FROM products p JOIN categories c...3,2118.7ms156,432
UPDATE users SET last_login = ? WHERE id = ?2,1451.8ms2,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.

src/index.ts
export default {
  async fetch(request, env) {
    const { results } = await env.DB
      .prepare("SELECT * FROM users")
      .all();

    return Response.json({ users: results });
  },
};

Ready to get started?

Deploy your first project in minutes with Ploy.