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

Can I customize type parsing per query? #125

Closed
bhenderson-riparian opened this issue Mar 10, 2021 · 3 comments
Closed

Can I customize type parsing per query? #125

bhenderson-riparian opened this issue Mar 10, 2021 · 3 comments

Comments

@bhenderson-riparian
Copy link

I have an existing project where we are not parsing types and I don't want to enable it globally yet, but I'm looking for a way to do it for one particular query.

The reason is that I'm writing the query to an excel file and I need the excel columns to have the number type.

thanks!

@bendrucker
Copy link
Collaborator

Not really. Your only option would be to leave the values as strings and then handle parsing yourself by calling the appropriate parser function after the data is returned.

@bhenderson-riparian
Copy link
Author

bhenderson-riparian commented Mar 10, 2021 via email

@gabegorelick
Copy link

This is an old issue, but I believe customizing types per query has been possible in pg since brianc/node-postgres#1825.

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

3 participants