@drzl-enhanced/analyzer
v0.0.4
Published
<div align="center">
Downloads
23
Readme
@drzl/analyzer
Drizzle schema → normalized analysis for fast, reliable codegen.
Use
import { SchemaAnalyzer } from '@drzl/analyzer'
const analyzer = new SchemaAnalyzer('src/db/schemas/index.ts')
const analysis = await analyzer.analyze({
includeRelations: true,
validateConstraints: true,
})The CLI consumes this analysis to generate validation, services, and routers.
Output (high level)
- dialect, tables, columns, keys, indexes
- relations (incl. inferred), enums
- issues (warnings/errors) for constraints and shape
Supported Databases
- SQLite - Full support for all column types
- PostgreSQL - Full support for all column types including JSONB, UUID, etc.
- MySQL - Full support for all column types including ENUM, SET, spatial types, etc.
Notes
- Best‑effort introspection aligned with Drizzle symbols across versions.
- Automatic dialect detection based on column constructor names and database types.
