---
title: "Overview"
description: "Drizzle ORM is a lightweight, high-performance, TypeScript-first database toolkit engineered with a headless architecture that decouples declarative schema definitions and query building logic from..."
last_updated: "2026-10-12T08:14:00.710929+00:00"
canonical_url: "https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/getting-started/overview"
---


## Overview

Drizzle ORM is a lightweight, high-performance, TypeScript-first database toolkit engineered with a headless architecture that decouples declarative schema definitions and query building logic from underlying database driver implementations. Operating across a diverse ecosystem of relational database engines including PostgreSQL, MySQL, SQLite, and Gel, the toolkit targets modern serverless, edge, and containerized runtime environments without imposing heavy runtime abstractions or native dependency bloat. 

The architecture supports varied execution targets spanning standard Node.js database pools, HTTP and WebSocket-based serverless protocols, and specialized embedded environments such as Cloudflare D1 workers, Durable Objects storage, and native SQLite bindings. Through tight integration with [CLI Command Architecture](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/cli-command-architecture) and validation utilities, Drizzle coordinates schema management, migration diffing, and type-safe query compilation across a unified monorepo workspace structure.

## Headless Design and Monorepo Philosophy

### Workspace Structure and Package Boundaries

The project organizes its codebase within a multi-package pnpm workspace coordinated by `pnpm-workspace.yaml`. The workspace decouples core ORM functionality, migration tooling, seed services, and schema validation wrappers into dedicated packages. 

| Workspace Package | Directory | Role and Responsibility |
| :--- | :--- | :--- |
| `drizzle-orm` | `drizzle-orm` | Core query builder, table/column models, dialects, and session abstractions |
| `drizzle-kit` | `drizzle-kit` | CLI command architecture, [database introspection](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/database-introspection), migrations, and [Studio Server Bridge](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/studio-server-bridge) |
| `drizzle-zod` | `drizzle-zod` | Automatic generation of Zod validation schemas from table definitions |
| `drizzle-typebox` | `drizzle-typebox` | JSON Schema generation via Sinclair's TypeBox library |
| `drizzle-valibot` | `drizzle-valibot` | Lightweight Valibot validation schema generator |
| `drizzle-arktype` | `drizzle-arktype` | Runtime validation definitions inferred via ArkType |
| `drizzle-seed` | `drizzle-seed` | Mock data generation and foreign key topological insertion ordering |
| `integration-tests` | `integration-tests` | Cross-dialect test suite executed against containerized database fixtures |
| `eslint-plugin-drizzle` | `eslint-plugin-drizzle` | AST lint rules enforcing safe delete and update query constraints |


> [!NOTE]
> Workspace packages maintain strict separation of concerns, allowing runtime validation libraries (`drizzle-zod`, `drizzle-typebox`, `drizzle-valibot`, `drizzle-arktype`) to operate independently as optional peer or downstream dependencies atop the core `drizzle-orm` engine.

### Driver Decoupling and Peer Dependencies

The core `drizzle-orm` package enforces a headless design by isolating native database client runtimes into optional peer dependencies. Rather than bundling heavy native binaries or tight vendor connections directly into the bundle, `drizzle-orm` declares drivers via `peerDependencies` combined with `peerDependenciesMeta` set to optional.

```json
"peerDependenciesMeta": {
	"mysql2": {
		"optional": true
	},
	"@vercel/postgres": {
		"optional": true
	},
	"@xata.io/client": {
		"optional": true
	},
	"better-sqlite3": {
		"optional": true
	},
	"@types/better-sqlite3": {
		"optional": true
	},
	"sqlite3": {
		"optional": true
	},
	"sql.js": {
		"optional": true
	},
	"@types/sql.js": {
		"optional": true
	},
	"@cloudflare/workers-types": {
		"optional": true
	},
	"pg": {
		"optional": true
	},
	"@types/pg": {
		"optional": true
	},
	"postgres": {
		"optional": true
	},
	"@neondatabase/serverless": {
		"optional": true
	},
	"@netlify/db": {
		"optional": true
	},
	"bun-types": {
		"optional": true
	},
	"@aws-sdk/client-rds-data": {
		"optional": true
	},
	"@planetscale/database": {
		"optional": true
	},
	"knex": {
		"optional": true
	},
	"kysely": {
		"optional": true
	},
	"@libsql/client": {
		"optional": true
	},
	"@libsql/client-wasm": {
		"optional": true
	},
	"@opentelemetry/api": {
		"optional": true
	},
	"expo-sqlite": {
		"optional": true
	},
	"gel": {
		"optional": true
	},
	"@op-engineering/op-sqlite": {
		"optional": true
	},
	"@electric-sql/pglite": {
		"optional": true
	},
	"@tidbcloud/serverless": {
```

> [!IMPORTANT]
> Because drivers such as `pg`, `mysql2`, `better-sqlite3`, and `@neondatabase/serverless` are marked as optional peer dependencies, consumers load only the specific client required by their target runtime, keeping bundle footprints minimal across serverless and edge deployments.

## Database Engine and Dialect Support

### PostgreSQL, PGlite, and Postgres-js Drivers

Drizzle ORM provides first-class support for PostgreSQL through specialized dialect compilation in `PgDialect` and dedicated session handlers. The `postgres-js` driver connects via the `postgres` package, configuring transparent parsers for PostgreSQL data types (such as OIDs `1184`, `1082`, `1083`, `1114`, `1182`, `1185`, `1115`, `1231`, `114`, and `3802`) to bypass unexpected transformations on dates and JSON fields.

```typescript
const transparentParser = (val: any) => val;

// Override postgres.js default date parsers: https://github.com/porsager/postgres/discussions/761
for (const type of ['1184', '1082', '1083', '1114', '1182', '1185', '1115', '1231']) {
	client.options.parsers[type as any] = transparentParser;
	client.options.serializers[type as any] = transparentParser;
}
client.options.serializers['114'] = transparentParser;
client.options.serializers['3802'] = transparentParser;
```

Additionally, embedded PostgreSQL is supported via PGlite through `@electric-sql/pglite`, handling local data directories and client instances within `PgliteDriver` and `PgliteDatabase`.

> [!NOTE]
> The `postgres-js` driver explicitly overrides default date and json parsers by assigning a transparent identity parser (`val => val`) to ensure raw wire formats pass directly into Drizzle's type casting layer without premature serialization.

### MySQL2 and SQLite Engine Adaptations

For MySQL environments, the `mysql2` driver abstracts connection pools and individual client connections using `MySql2Driver` and `MySql2Database`. It inspects client instances to verify whether they provide a callback or promise interface, automatically invoking `.promise()` on callback-based clients to normalize asynchronous execution.

```typescript
const clientForInstance = isCallbackClient(client) ? client.promise() : client;
```

SQLite dialects target diverse runtimes, ranging from Node.js bindings like `better-sqlite3` and Bun's built-in `bun:sqlite` to edge-native targets such as Cloudflare D1 databases (`D1Database`) and Cloudflare Durable Objects storage (`DurableObjectStorage`).

> [!WARNING]
> When providing a schema configuration alongside the `mysql2` driver, you must explicitly specify the `mode` property as either `'planetscale'` or `'default'` to avoid runtime configuration errors.

### Gel Database Integration

Drizzle extends its dialect breadth to Gel via `GelDialect`, `GelDriver`, and `GelJsDatabase`, bridging the Gel client ecosystem (`gel`) into standard Drizzle query building and relational session semantics.

| Driver Module | Target Engine / Client | Primary Artifacts |
| :--- | :--- | :--- |
| `postgres-js` | PostgreSQL (`postgres`) | `PostgresJsDatabase`, `PostgresJsSession`, `postgres` client |
| `pglite` | Embedded PostgreSQL (`@electric-sql/pglite`) | `PgliteDatabase`, `PgliteSession`, `PGlite` client |
| `mysql2` | MySQL / PlanetScale (`mysql2`) | `MySql2Database`, `MySql2Session`, Pool/Connection |
| `better-sqlite3` / `bun-sqlite` | SQLite (Node / Bun) | `BetterSQLite3Database`, `BunSQLiteDatabase` |
| `d1` / `durable-sqlite` | Cloudflare Workers & Durable Objects | `D1Database`, `DurableObjectStorage` wrappers |
| `gel` | Gel DB (`gel`) | `GelJsDatabase`, `GelDriver`, `GelClient` |


> [!CAUTION]
> Calling `drizzle.mock()` on dialect drivers returns a mock database instance where `$client` is either uninitialized or set to a placeholder string (e.g. `'$client is not available on drizzle.mock()'`), preventing accidental production queries from executing against stubbed connections.

## Serverless and Edge Runtimes

### Cloudflare Durable Objects and Bun Integrations

Drizzle provides dedicated database driver modules tailored for modern serverless and edge computing environments, including Cloudflare Durable Objects and the Bun runtime. For Cloudflare Durable Objects, the `durable-sqlite` driver exports `DrizzleSqliteDODatabase` alongside a `drizzle` initialization function that accepts a `DurableObjectStorage` client instance and a `DrizzleConfig` object, configuring a synchronous SQLite dialect (`SQLiteSyncDialect`) and a `SQLiteDOSession` without requiring manual polling or network roundtrips.

Similarly, the Bun ecosystem is supported through two specialized driver packages: `bun-sqlite` and `bun-sql`. The `bun-sqlite` driver builds upon Bun's native `bun:sqlite` engine by wrapping `Database` instances into `BunSQLiteDatabase`, supporting flexible connection options such as `readonly`, `create`, and `readwrite` flags. The `bun-sql` driver targets Bun's PostgreSQL capabilities, instantiating `BunSQLDatabase` instances over Bun's native `SQL` client and automatically wiring query parsers, serializers, and caching hooks.

> [!NOTE]
> When initializing `drizzle` with `bun-sqlite` or `bun-sql`, invoking `drizzle.mock()` constructs a stubbed database instance where the `$client` property is assigned either a placeholder object with empty option maps or an uninitialized handle, keeping test mocks completely isolated from native runtime bindings.

### Neon Serverless and Vercel Postgres Protocols

Serverless PostgreSQL deployments across Neon and Vercel Postgres rely on lightweight HTTP and WebSocket connection managers that bypass traditional persistent connection pools. The Neon serverless driver package provides two distinct client modes: WebSocket-driven connection pooling via `NeonDriver` and `Pool` configurations from `@neondatabase/serverless`, and HTTP-based stateless querying via `NeonHttpDriver` and `neon()` query functions. The HTTP driver initializes explicit type parsers for PostgreSQL temporal and geometric types—such as `TIMESTAMPTZ`, `TIMESTAMP`, `DATE`, and `INTERVAL`—ensuring raw string representations are preserved across serverless boundaries.

Vercel Postgres integrates similarly through the `vercel-postgres` driver, which wraps the `@vercel/postgres` `sql` client into `VercelPgDatabase` instances and supports optional caching layers and custom logging through `VercelPgDriver`. Both Neon HTTP and Vercel Postgres driver configurations accept schema definitions, extraction helpers, and custom cache invalidation callbacks (`onMutate`) directly within their initialization objects.

> [!IMPORTANT]
> The `NeonHttpDatabase` class exposes a `$withAuth(token)` method that returns a proxied database instance intercepting query execution and `with` clauses to dynamically inject fine-grained authentication tokens into Neon HTTP requests.

| Serverless Driver Module | Target Protocol / Client SDK | Primary Database Class | Key Configuration Options |
| :--- | :--- | :--- | :--- |
| `durable-sqlite` | Cloudflare Durable Objects (`DurableObjectStorage`) | `DrizzleSqliteDODatabase` | `client`, `schema`, `casing`, `logger` |
| `bun-sqlite` | Bun Native SQLite (`bun:sqlite`) | `BunSQLiteDatabase` | `connection` (string/object with `readonly`, `create`, `readwrite`), `client`, `schema` |
| `bun-sql` | Bun Native PostgreSQL (`bun`) | `BunSQLDatabase` | `connection` (string/object with URL & `SQLOptions`), `client`, `schema` |
| `neon-serverless` | Neon WebSocket / Pool (`@neondatabase/serverless`) | `NeonDatabase` | `connection` (string/`PoolConfig`), `client`, `ws`, `cache`, `logger` |
| `neon-http` | Neon HTTP Query (`@neondatabase/serverless`) | `NeonHttpDatabase` | `connection` (string/`HTTPTransactionOptions`), `client`, `cache`, `logger` |
| `vercel-postgres` | Vercel Postgres (`@vercel/postgres`) | `VercelPgDatabase` | `client`, `cache`, `logger`, `casing` |


> [!CAUTION]
> When configuring the Neon serverless driver via an options object, providing a `ws` property automatically overrides the global `neonConfig.webSocketConstructor` constructor for all underlying WebSocket connections.

## Unified LibSQL Transport Adapters

### LibSQL Driver Modularity

Drizzle ORM provides a modular set of entrypoints for LibSQL, decoupling database operations from specific client bindings across seven dedicated transport packages. Each entrypoint exports a specialized `drizzle` initialization function that accepts either a connection string, a pre-configured client instance, or a unified configuration object containing connection parameters and schema definitions.

```typescript
export function drizzle<
	TSchema extends Record<string, unknown> = Record<string, never>,
	TClient extends Client = Client,
>(
	...params: [
		TClient | string,
	] | [
		TClient | string,
		DrizzleConfig<TSchema>,
	] | [
		(
			& DrizzleConfig<TSchema>
			& ({
				connection: string | Config;
			} | {
				client: TClient;
			})
		),
	]
): LibSQLDatabase<TSchema> & {
```

The initialization function handles three distinct parameter signatures: passing a connection string directly, passing a configuration object with a `connection` string or `Config` object or an existing `client` instance, or passing a pre-instantiated client directly alongside an optional `DrizzleConfig` object.

```typescript
	if (typeof params[0] === 'string') {
		const instance = createClient({
			url: params[0],
		});

		return construct(instance, params[1]) as any;
	}

	if (isConfig(params[0])) {
		const { connection, client, ...drizzleConfig } = params[0] as
			& { connection?: Config; client?: TClient }
			& DrizzleConfig<TSchema>;

		if (client) return construct(client, drizzleConfig) as any;

		const instance = typeof connection === 'string' ? createClient({ url: connection }) : createClient(connection!);

		return construct(instance, drizzleConfig) as any;
	}

	return construct(params[0] as TClient, params[1] as DrizzleConfig<TSchema> | undefined) as any;
}
```

> [!NOTE]
> All LibSQL driver entrypoints export a static `drizzle.mock()` helper method that constructs a type-safe `LibSQLDatabase` instance without binding to a live client, assigning `$client` the literal type string `'$client is not available on drizzle.mock()'`.

| Transport Module Path | Underlying Package Import | Target Environment / Protocol |
| :--- | :--- | :--- |
| `drizzle-orm/libsql` | `@libsql/client` | Default / Generic LibSQL Client |
| `drizzle-orm/libsql/node` | `@libsql/client/node` | Node.js native bindings |
| `drizzle-orm/libsql/http` | `@libsql/client/http` | HTTP protocol serverless transport |
| `drizzle-orm/libsql/ws` | `@libsql/client/ws` | WebSocket protocol serverless transport |
| `drizzle-orm/libsql/web` | `@libsql/client/web` | Web standard fetch environments |
| `drizzle-orm/libsql/wasm` | `@libsql/client-wasm` | WebAssembly SQLite runtime |
| `drizzle-orm/libsql/sqlite3` | `@libsql/client/sqlite3` | Native `sqlite3` driver bindings |


## Tooling Ecosystem and Schema Coordination

### CLI Commands and Schema Management

Drizzle Kit orchestrates schema generation, migration lifecycle management, database inspection, and local studio hosting through a set of CLI commands defined using `@drizzle-team/brocli`. Each command validates inputs, enforces version compatibility with `drizzle-orm`, and dispatches dialect-specific handlers across PostgreSQL, MySQL, SQLite, Turso, SingleStore, and Gel.

| CLI Command | Description / Action | Target Dialects / Handlers |
| :--- | :--- | :--- |
| `generate` | Prepares migration files and differential schemas | `postgresql`, `mysql`, `sqlite`, `turso`, `singlestore` |
| `drop` | Removes the most recent migration file from the output folder | Validated against V1 output directory layout |
| `studio` | Launches local Drizzle Studio server with TLS certificates | `postgresql`, `mysql`, `sqlite`, `turso`, `singlestore` (Gel throws error) |
| `export` | Generates a raw SQL diff between the current and empty state | `postgresql`, `mysql`, `sqlite`, `turso`, `singlestore` |


> [!WARNING]
> Attempting to execute the `studio` or `export` commands with the `gel` dialect will cause the CLI to log an error message via `error()` and immediately terminate process execution with `process.exit(1)`.

### Driver Interoperability and Runtime Checks

The tooling and runtime packages coordinate closely to ensure proper driver wiring. For example, Netlify DB initialization inspects connection parameters to select between serverless Neon HTTP/Pool configurations and native Node.js Postgres pools, automatically mapping built-in types such as `TIMESTAMPTZ`, `TIMESTAMP`, `DATE`, and `INTERVAL`.

```typescript
	initMappers() {
		types.setTypeParser(types.builtins.TIMESTAMPTZ, (val: any) => val);
		types.setTypeParser(types.builtins.TIMESTAMP, (val: any) => val);
		types.setTypeParser(types.builtins.DATE, (val: any) => val);
		types.setTypeParser(types.builtins.INTERVAL, (val: any) => val);
		types.setTypeParser(1231, (val: any) => val);
		types.setTypeParser(1115, (val: any) => val);
		types.setTypeParser(1185, (val: any) => val);
		types.setTypeParser(1187, (val: any) => val);
		types.setTypeParser(1182, (val: any) => val);
	}
}
```

> [!NOTE]
> When starting Drizzle Studio with specific underlying drivers such as `aws-data-api` or `pglite`, the CLI verifies that the installed `drizzle-orm` package meets minimum version thresholds (`> 0.30.10` and `> 0.30.6` respectively) before allowing the server to start.

## Where to go next

| I want to… | Read |
| --- | --- |
| Walk through minimal, copy-pasteable examples to declare schemas, establish a connection with popular drivers, execute type-safe queries, and apply migrations. | [Quick Start](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/getting-started/quick-start) |
| Navigate the monorepo directory layout, understanding the boundary and responsibility of drizzle-orm, drizzle-kit, drizzle-seed, validation wrappers, and integration tests. | [Project Structure](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/getting-started/project-structure) |
| How raw SQL expressions, parameterized chunks, dialect-aware operators, condition trees, and SQL functions are constructed and safely parameterized. | [SQL Template Engine](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/sql-template-engine) |
| How table definitions, column builder abstractions, primary keys, indexes, foreign keys, aliases, and naming conventions are implemented and inferred across dialects. | [Table and Column Models](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/table-and-column-models) |
| How the Relational Query Builder (RQB) parses declarative relation definitions (1:1, 1:N, M:N), models nested graph queries, and builds consolidated execution payloads. | [Relational Query Engine](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/relational-query-engine) |
| How core query builders, Select/Insert/Update/Delete base abstractions, thenable query promises, and subquery wrappers compile high-level operations into executable ASTs. | [Query Builder Foundation](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/query-builder-foundation) |
| How database sessions, driver connection wrappers, transaction semantics, savepoints, batch execution, and migration runners coordinate across asynchronous runtimes. | [Sessions and Transactions](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/sessions-and-transactions) |
| How query result caching interfaces are structured and integrated with external distributed cache stores such as Upstash Redis. | [Query Caching](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/query-caching) |
| How query execution logging, OpenTelemetry-compatible spans, tracer hooks, and diagnostic telemetry are wired through internal query execution paths. | [Logging and Tracing](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/logging-and-tracing) |
| How to define schemas, tables, standard columns, PostGIS geometry, pgvector types, sequences, check constraints, indexes, unique constraints, and row-level security policies in PostgreSQL. | [Dialects And Schema Schema Definition](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/dialects-and-schema/dialects-and-schema-schema-definition) |
| How PostgreSQL-specific dialect compilation, select/insert/update/delete operations, returning clauses, conflict resolution (upsert), and materialized view refreshes are implemented. | [Dialects And Schema Query Builders](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/dialects-and-schema/dialects-and-schema-query-builders) |
| How HTTP and WebSocket-based serverless PostgreSQL clients (Neon HTTP/Serverless, Supabase, Vercel Postgres, AWS Data API, Netlify DB, and Xata HTTP) maintain connectionless or pooled execution. | [Drivers And Runtimes](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/drivers-and-runtimes/drivers-and-runtimes) |
| How Drizzle operates inside Cloudflare D1 workers, Durable Objects storage, Expo SQLite mobile environments, and OP-SQLite on React Native. | [Edge and Mobile SQLite](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/drivers-and-runtimes/edge-and-mobile-sqlite) |
| How Drizzle schemas and sessions integrate with Prisma client instances, Knex query runners, and Kysely adapters for incremental migrations. | [Knex Kysely and Prisma Interop](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/drivers-and-runtimes/knex-kysely-and-prisma-interop) |
| How drizzle-kit parses CLI arguments, dispatches migrate, check, drop, and up commands, prompts interactive choices, and displays formatted terminal output. | [CLI Command Architecture](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/cli-command-architecture) |
| How TypeScript schema definitions are serialized into normalized JSON migration snapshots and journals across PostgreSQL, MySQL, SQLite, SingleStore, and Gel. | [Migration Toolkit Schema](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/migration-toolkit-schema) |
| How live database catalogs (information schema, system tables, pragma statements) are inspected to reverse-engineer Drizzle schema code for all supported engines. | [Database Introspection](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/database-introspection) |
| How drizzle-kit serves Drizzle Studio locally, provisions TLS certificates, exposes schema metadata, and proxies query inspection over a local HTTP server. | [Studio Server Bridge](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/studio-server-bridge) |
| How drizzle.config.ts files are parsed, validated, and normalized for dialect options, connection parameters, extensions, and schema glob paths. | [Configuration and Validations](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/migration-toolkit/configuration-and-validations) |
| How to automatically generate Zod schemas from Drizzle table definitions, customize insert/select schemas, refine constraints, and validate forms. | [Drizzle Zod Integration](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/drizzle-zod-integration) |
| How JSON Schema validation objects are derived from Drizzle column types using Sinclair's TypeBox library. | [Drizzle TypeBox Integration](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/drizzle-typebox-integration) |
| How modular and lightweight Valibot validation schemas are automatically generated from Drizzle ORM table definitions. | [Drizzle Valibot Integration](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/drizzle-valibot-integration) |
| How ArkType runtime validation definitions are inferred from database table schemas. | [Drizzle ArkType Integration](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/drizzle-arktype-integration) |
| How drizzle-seed inspects database schemas, orders insertion sequences respecting foreign key topological dependencies, and seeds mock records. | [Seed Service Engine](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/seed-service-engine) |
| How realistic mock data (names, addresses, jobs, lorem ipsum, phone numbers) and weighted distribution generators produce mock values for column types. | [Seed Data Generators](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/seed-data-generators) |
| How AST lint rules enforce safety practices, such as requiring WHERE clauses on delete and update queries to avoid accidental whole-table wipes. | [ESLint Plugin Drizzle](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/ecosystem-packages/eslint-plugin-drizzle) |
| How Turborepo, Rollup, tsup, and custom fix-imports scripts coordinate package bundling, ESM/CJS exports, and bundle size constraints. | [Monorepo Build Pipeline](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/testing-and-tooling/monorepo-build-pipeline) |
| How Vitest, Docker containers, SST cloud fixtures, and real database drivers run cross-dialect integration tests across MySQL, PostgreSQL, SQLite, and SingleStore. | [Integration Test Harness](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/testing-and-tooling/integration-test-harness) |
| How Drizzle ORM verifies compile-time type inference, relational join typing, strict-null checks, and prevents regressions across TypeScript versions. | [Type System Verification](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/testing-and-tooling/type-system-verification) |

## Related

- [Quick Start](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/getting-started/quick-start)
- [Project Structure](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/getting-started/project-structure)
- [SQL Template Engine](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/core-architecture/sql-template-engine)


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/llms.txt) for all pages in this wiki.
