Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: map column_info 'pg_type' field onto exported PG_XXXX numeric constants #131

Open
djerius opened this issue Oct 31, 2024 · 0 comments

Comments

@djerius
Copy link

djerius commented Oct 31, 2024

I have code which works on columns of arbitrary types, using column_info to extract the column type. I would like to more easily support the Postgres specific types, but while my code is based around the constants returned by the :pg_types export tag, the type returned by column_info in the pg_type field is a string name, rather than the enumerated integers provided by :pg_types.

Would it be possible for column_info to return an additional field which returns the PG_XXX constants, or provide a function which maps the string onto those constants?

Thanks,
Diab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant