Merge pull request #2113 from mateuszkowalke/master

Add comment for pgtype.Interval struct
pull/2102/merge
Jack Christensen 2024-08-26 07:28:29 -05:00 committed by GitHub
commit 603f2337d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ similar fashion to database/sql. The second is to use a pointer to a pointer.
return err
}
When using nullable pgtype types as parameters for queries, one has to remember
to explicitly set their Valid field to true, otherwise the parameter's value will be NULL.
JSON Support
pgtype automatically marshals and unmarshals data from json and jsonb PostgreSQL types.