2
0

Add child records docs and examples

This commit is contained in:
Jack Christensen
2022-07-23 10:11:13 -05:00
parent 4739f79fca
commit 5cee04a026
4 changed files with 97 additions and 2 deletions
+5
View File
@@ -112,6 +112,11 @@ Compatibility with database/sql
pgtype also includes support for custom types implementing the database/sql.Scanner and database/sql/driver.Valuer
interfaces.
Child Records
pgtype's support for arrays and composite records can be used to load records and their children in a single query. See
example_child_records_test.go for an example.
Overview of Scanning Implementation
The first step is to use the OID to lookup the correct Codec. If the OID is unavailable, Map will try to find the OID