- Notifications
You must be signed in to change notification settings - Fork 437
Closed
Labels
Description
It's unclear at the moment how to pass composite type values (in my case, arrays of them) to asyncpg.
For example, if I want to do something like this:
CREATETYPEkeyvalueAS (key text, value text); CREATETABLEtest (id int, data keyvalue); INSERT INTO test (id, data) VALUES (1, ROW('stuff', 'things'));How to do so with asyncpg isn't clear. I've tried tuples and received errors about integer types (one part of my composite type is an integer). The docs mention something about a Record type but not where to find it.