Nicholas Wilson
fc020c24ac
Add support for pgtype.UUID to write into any [16]byte type
2019-07-24 12:32:18 +01:00
maxarchx
b1a17cf284
Apply UUID string length check before parsing
2018-11-30 15:13:43 +05:00
Kelsey Francis
1e36edf4b0
Add UUIDArray type
...
Also change UUID.Set() to convert nil to NULL in order for
UUIDArray.Set() to support converting [][]byte slices that contain nil.
2017-08-27 19:36:53 -07:00
Jack Christensen
8f4178b3d3
Use github.com/pkg/errors
2017-06-04 21:30:03 -05:00
Jack Christensen
3bdc94cee2
Use Go casing convention for UUID
2017-06-03 11:54:57 -05:00
Jack Christensen
6e64a0c867
Refactor pgio and types to append buffers
2017-05-02 20:38:26 -05:00
Jack Christensen
932caef600
pgtype DecodeText and DecodeBinary do not copy
...
They now take ownership of the src argument.
Needed to change Scan to make a copy of []byte arguments as lib/pq apparently
gives Scan a shared memory buffer.
2017-04-29 12:23:51 -05:00
Jack Christensen
cab445ddd2
Add satori-uuid type
...
Make pgtype.EncodeValueText public
2017-04-14 16:46:39 -05:00
Jack Christensen
a8c350c77d
Use pointer methods for all struct pgtypes
...
Now no need to no whether certain interfaces are implemented by struct or
pointer to struct.
2017-04-14 13:08:05 -05:00
Jack Christensen
e4451b47b2
Add shopspring.Numeric
...
This adds PostgreSQL numeric mapping to and from
github.com/shopspring/decimal.
Makes pgtype.NullAssignTo public as external types need this functionality.
Begin extraction of pgtype testing functionality so it can easily be used by
external types.
2017-04-14 12:24:44 -05:00
Jack Christensen
26e92b12c2
Add pgtype.Uuid
2017-04-04 20:24:01 -05:00