agronholm / agronholm/sqlacodegen

Code generation for PostgreSQL composite types

Open
#268 1 comment 1 reaction 1 assignee Claimed by @sheinbergon View on GitHub
enhancement
Dominant language
Python
Stars
2.4k
Forks
284
Avg merge
2d 1h
Merged PRs (30d)
1

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.