2
0

Add compatibility with database/sql custom types

Support database/sql.Scanner
Support database/sql/driver.Valuer
This commit is contained in:
Jack Christensen
2015-12-31 14:46:43 -06:00
parent 029bd49065
commit 9f9a9779ac
6 changed files with 160 additions and 1 deletions
+3
View File
@@ -181,6 +181,9 @@ Conn.PgTypes.
See example_custom_type_test.go for an example of a custom type for the
PostgreSQL point type.
pgx also includes support for custom types implementing the database/sql.Scanner
and database/sql/driver.Valuer interfaces.
Raw Bytes Mapping
[]byte passed as arguments to Query, QueryRow, and Exec are passed unmodified