agronholm / agronholm/sqlacodegen

Code generation for PostgreSQL composite types

オープン
#268 コメント 1 件 リアクション 1 件 担当者 1 名 @sheinbergon が担当を希望しています GitHub で見る
enhancement
主要言語
Python
スター
2.4k
フォーク
284
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。