Zum Hauptinhalt springen

Schema & type inference (Drizzle, 14 namespaces)

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Databases & Storage · Tier: light · Risk: medium — external managed service (Neon Postgres)

Drizzle table definitions split across 14 pgSchema() namespaces and re-exported from a single schema index for compile-time type inference.

When to use: Use when adding or changing database tables and query results need to stay type-safe end to end.

Docs

Code

Proof


Machine-readable record: databases-schema-type-inference in mcp/patterns.registry.json.

← Back to Pattern Library

Geht dieses Pattern noch besser? Sag uns, wie.

Feedback geben