2
0

Add support for record array

Like Record itself, it only implements BinaryDecoder,
doesn't implement BinaryEncoder, and has no support for the text
protocol.
This commit is contained in:
WGH
2022-03-28 05:06:16 +03:00
committed by Jack Christensen
parent 3e230ba731
commit ccb207cba5
3 changed files with 424 additions and 0 deletions
+2
View File
@@ -25,4 +25,6 @@ erb pgtype_array_type=JSONBArray pgtype_element_type=JSONB go_array_types=[]stri
# While the binary format is theoretically possible it is only practical to use the text format.
erb pgtype_array_type=EnumArray pgtype_element_type=GenericText go_array_types=[]string,[]*string binary_format=false typed_array.go.erb > enum_array.go
erb pgtype_array_type=RecordArray pgtype_element_type=Record go_array_types=[][]Value element_type_name=record text_null=NULL encode_binary=false text_format=false typed_array.go.erb > record_array.go
goimports -w *_array.go