-
Notifications
You must be signed in to change notification settings - Fork 838
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
How to use my own date type with pgx #1132
Comments
There are multiple ways. pgx has a compatibility layer for If that does not provide sufficient performance you can implement |
Thank you for your response, @jackc! Will try. |
Hi @jackc! I know you are very busy, but I hope you will find time for me here! I have finished to test my solution, the question is the following. In my tests only The commit with the code is here: |
The binary format is usually faster. So pgx will usually prefer that when it is available. Under most conditions the text format will not be used. If you want to force the text format then you could connect to pgx with |
Thank you @jackc for the answer! |
Howdy folks!
In case I use my own date model, how to use it directly with
Scan()
,Query
,QueryRow
andExec
? Did not find an obvious way to do that.The text was updated successfully, but these errors were encountered: