Jack Christensen
4e79a104f7
Test domains when registered and unregistered
...
Fix bug assigning to unknown type.
2019-04-13 17:09:51 -05:00
Jack Christensen
0ac82007fb
Use extracted packages with Go modules
2019-04-05 10:59:47 -05:00
Damir Vandic
79ba0275de
Add the type of the value in all decode error messages
2018-06-04 21:02:20 +02:00
Jack Christensen
703ce85513
Generate UUIDArray from template
...
- Fix error in Set
- Specifically handle untyped nil
2017-08-29 14:33:25 -05:00
Jack Christensen
a5f166bd21
Use github.com/pkg/errors
2017-06-04 21:30:03 -05:00
Jack Christensen
2140814606
Use Go casing convention for OID
2017-06-03 11:53:49 -05:00
Jack Christensen
6b906ca870
Refactor pgio and types to append buffers
2017-05-02 20:38:26 -05:00
Jack Christensen
ab21bc4ec7
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
b49035fdc1
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
6f9ef694d0
Add database/sql support to pgtype
2017-03-18 21:11:43 -05:00
Jack Christensen
85f7df1e81
Factor out duplication in AssignTo
2017-03-18 16:54:08 -05:00
Jack Christensen
df8f8e17cf
Add pgtype.HstoreArray
...
This required restructuring array types to lookup oid of element instead of
hard-coding it due to hstore having a variable oid.
2017-03-18 12:40:54 -05:00