agronholm / agronholm/sqlacodegen

Code generation for PostgreSQL composite types

Abierto
#268 1 comentario 1 reacción 1 asignado Reclamado por @sheinbergon Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
2.4k
Forks
284
Merge medio
2 d 1 h
PR fusionados (30 d)
1

Descripción

### Things to check first

- [X] I have searched the existing issues and didn't find my feature already requested there

### Feature description

Right now if a column has a composite type, it is generated as `Column(NullType)` with Python type `Any`. With [`CompositeType`](https://sqlalchemy-utils.readthedocs.io/en/latest/data_types.html#module-sqlalchemy_utils.types.pg_composite) from sqlalchemy-utils maybe it's possible to generate code for composite types.

### Use case

There would be somewhat nicer syntax for setting and getting columns with composite types, and more information from the schema would be represented in Python form.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.