2
0

Add example custom type

This commit is contained in:
Jack Christensen
2014-07-12 21:40:48 -05:00
parent 88d5a25fc4
commit 5dace165f5
2 changed files with 100 additions and 1 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ added for additional types like point, hstore, numeric, etc. that do not have
direct mappings in Go by the types implementing Scanner, TextEncoder, and
optionally BinaryEncoder. To enable binary format for custom types, a prepared
statement must be used and the field description of the returned field must have
FormatCode set to BinaryFormatCode. See example_value_transcoder_test.go for an
FormatCode set to BinaryFormatCode. See example_custom_type_test.go for an
example of a custom type for the PostgreSQL point type.
### Null Mapping