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

Encoder/decoder for 'oid' #106

Open
int-index opened this issue Jan 21, 2019 · 3 comments
Open

Encoder/decoder for 'oid' #106

int-index opened this issue Jan 21, 2019 · 3 comments

Comments

@int-index
Copy link

I want to query PostgreSQL system tables, such as pg_type:

image

There are stock decoders for int2, bool, char, etc, but I'm not sure what to use for columns of type oid or name.

@nikita-volkov
Copy link
Owner

I guess int8 should do it.

@int-index
Copy link
Author

Do I make a PR with oid = int8 to hasql then? As a user I'd like to abstract over this coincidence and just find an oid decoder when looking for it on Hackage.

@nikita-volkov
Copy link
Owner

I agree that it should be added. If you wish to make a PR, please start with the "postgresql-binary" library, implementing a test for the codec in the same style as the other tests there.

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

2 participants