Commit 6057333
committed
Add Python SQLModel code generator design document
DOCS: Add comprehensive design for Python SQLModel/Pydantic codegen
This document outlines the complete design for implementing a Python
code generator that converts PostgreSQL DDL schema definitions to
SQLModel and Pydantic models. Key aspects include:
- Architecture with modular components (type mapping, naming, models)
- Comprehensive PostgreSQL to Python type mapping table
- Field generation patterns for all constraint types
- Edge case handling (reserved words, circular refs, arrays, JSONB)
- Testing strategy with unit and snapshot tests
- Implementation plan broken into 8 phases
Also adds genco 0.19 as a dependency for Python code generation.
https://claude.ai/code/session_01Mr4TzZKNorjrdtJyVnDwuW1 parent 19ade5a commit 6057333
3 files changed
Lines changed: 673 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
0 commit comments