Skip to content

Conversation

@RobbieMcKinstry
Copy link
Contributor

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_01Mr4TzZKNorjrdtJyVnDwuW

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_01Mr4TzZKNorjrdtJyVnDwuW
@RobbieMcKinstry RobbieMcKinstry merged commit f37d360 into trunk Jan 30, 2026
6 checks passed
@RobbieMcKinstry RobbieMcKinstry deleted the claude/python-sqlmodel-codegen-8b5aZ branch January 30, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants