3 ms·
I only define them once, but I define all the database schema by hand (with an SQL script). I’d love to have something that translates Pydantic to an SQL schema
by polyrand 6y ago
I only define them once, but I define all the database schema by hand (with an SQL script). I’d love to have something that translates Pydantic to an SQL schema definition.
Each asyncpg result has a dictionary-like interface, so I can convert it to a Pydantic model easily.