MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

Add support for tuple-format custom codecs on composite types #1061

Closed elprans closed 1 year ago

elprans commented 1 year ago

It is now possible to set_type_codec('mycomposite', ... format='tuple'), which is useful for types that are represented by a composite type in Postgres, but are an integral type in Python, e.g. complex.

Fixes: #1060