agronholm / agronholm/sqlacodegen
Code generation for PostgreSQL composite types
- Ngôn ngữ chính
- Python
- Star
- 2.4k
- Fork
- 284
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
### 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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.