Jun 3, 2022
Thanks for reading!
I think that it's definitely possible, but harder to code. I can try to infer the dtypes from the first returned row, but there are annoying nulls possible. Postgres doesn't send the intended type with null, unfortunately. So I will have undetermined column types which I'll have to process separately and transform to NaN/NaT/whatever as soon as I see at least one non-null value.