> ## Documentation Index
> Fetch the complete documentation index at: https://docs-2.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://docs-2.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://docs-2.manicule.dev/docs/api/mcp.
> Every agent surface: https://docs-2.manicule.dev/docs/.well-known/llms-manifest.json

# Cloudflare D1 (Edge SQLite) (/docs/databases/cloudflare-d1)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 206 · updated: 2026-11-11 -->
Related: [Managed Databases & Storage Overview](/docs/databases/overview.md), [Neon Serverless Postgres](/docs/databases/neon-postgres.md), [Supabase Managed Postgres](/docs/databases/supabase-postgres.md), [Database Migrations & ORM Setup](/docs/databases/migrations.md)

> Ultra-low latency edge relational database powered by Cloudflare D1.

**Cloudflare D1** is a serverless, edge-native relational database co-located with Cloudflare Workers. Read queries execute with sub-5ms latency globally.

***

## Highlights

* **Low Latency**: Queries execute on edge nodes near the user.
* **Standard SQL**: SQLite dialect supporting joins, indexes, transactions, and JSON operators.
* **Drizzle ORM Integration**: Schema definitions and typed queries out of the box.

```typescript
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";

export const products = sqliteTable("products", {
  id: text("id").primaryKey(),
  name: text("name").notNull(),
  priceInCents: integer("price_in_cents").notNull(),
  createdAt: integer("created_at", { mode: "timestamp" }).notNull(),
});
```
