PostgreSQL driver and toolkit for Go
 
 
 
Go to file
Rueian cae98b5e45
Register JSONBArray at NewConnInfo()
2021-05-03 22:20:58 +08:00
.github/workflows Yet another CI tweak 2020-12-28 13:02:34 -06:00
ext Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
pgxtype Add pgxtype package for simpler type registration 2020-05-13 07:34:10 -05:00
testutil enable hstore extension before running tests 2020-06-10 09:05:14 -07:00
travis enable hstore extension before running tests 2020-06-10 09:05:14 -07:00
zeronull Fix typo in docs 2020-01-24 14:58:59 -06:00
.travis.yml remove irrelevant test from pgx 2020-06-09 18:31:49 -07:00
CHANGELOG.md Release v1.7.0 2021-03-25 09:16:43 -04:00
LICENSE Update copyright date 2021-03-25 09:08:27 -04:00
README.md Add CI badge 2020-12-28 13:11:36 -06:00
aclitem.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
aclitem_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
aclitem_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
aclitem_test.go disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
array_test.go Fix panic on assigning empty array to non-slice or array 2020-11-27 11:56:21 -06:00
array_type.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
array_type_test.go Fix ArrayType DecodeBinary empty array breaks future reads 2020-07-14 11:58:10 -05:00
bit.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
bit_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
bool.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
bool_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
bool_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
bool_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08:00
box.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
box_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
bpchar.go Allow types to specify preference format result and param formats 2020-05-10 14:05:16 -05:00
bpchar_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
bpchar_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
bpchar_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
bytea.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
bytea_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
bytea_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
bytea_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
cid.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
cid_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
cidr.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
cidr_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
cidr_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
circle.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
circle_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
composite_bench_test.go CompositeType fields contain name and oid 2020-05-13 07:09:52 -05:00
composite_fields.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
composite_fields_test.go Add CompositeFields encoders 2020-05-12 11:55:24 -05:00
composite_type.go CompositeTextScanner handles backslash escapes 2021-04-24 08:08:34 -05:00
composite_type_test.go CompositeTextScanner handles backslash escapes 2021-04-24 08:08:34 -05:00
convert.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
custom_composite_test.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
database_sql.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
date.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
date_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
date_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
date_test.go Date.Set parses string 2020-03-09 10:40:40 -05:00
daterange.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
daterange_test.go Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06:00
enum_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
enum_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
enum_type.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
enum_type_test.go Expose EnumType directly instead of behind interface 2020-05-12 10:41:50 -05:00
float4.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
float4_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
float4_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
float4_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
float8.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
float8_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
float8_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
float8_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
generic_binary.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
generic_text.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
go.mod Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
go.sum disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
hstore.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
hstore_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
hstore_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
hstore_test.go Fix hstore with empty string values 2020-06-06 10:26:34 -05:00
inet.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
inet_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
inet_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
inet_test.go Fix Inet.Set to handle nil net.IP correctly 2020-10-13 15:26:09 +02:00
int2.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int2_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int2_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
int2_test.go Add tests for Int(2|4|8).Set accepting float(32|64) 2020-10-03 08:36:40 -05:00
int4.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int4_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int4_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
int4_test.go Add tests for Int(2|4|8).Set accepting float(32|64) 2020-10-03 08:36:40 -05:00
int4range.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int4range_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
int8.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int8_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int8_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
int8_test.go Add tests for Int(2|4|8).Set accepting float(32|64) 2020-10-03 08:36:40 -05:00
int8range.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
int8range_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
interval.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
interval_test.go Allow converting intervals with months and days to duration 2020-06-20 13:26:06 -05:00
json.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
json_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08:00
jsonb.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
jsonb_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
jsonb_array_test.go Fix JSONBArray to have elements of JSONB 2020-09-04 18:41:34 -05:00
jsonb_test.go Update dependencies 2020-03-30 11:30:37 -05:00
line.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
line_test.go Update dependencies 2020-03-30 11:30:37 -05:00
lseg.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
lseg_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
macaddr.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
macaddr_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
macaddr_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
macaddr_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
name.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
name_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
numeric.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
numeric_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
numeric_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
numeric_test.go Fix numeric NaN support 2021-03-11 19:49:03 -06:00
numrange.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
numrange_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
oid.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
oid_value.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
oid_value_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
path.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
path_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
pgtype.go Register JSONBArray at NewConnInfo() 2021-05-03 22:20:58 +08:00
pgtype_test.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
pguint32.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
point.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
point_test.go fixed marshaling and unmarshaling 2020-09-22 08:18:39 -05:00
polygon.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
polygon_test.go Add tests to Polygon 2020-10-08 07:59:44 -05:00
qchar.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
qchar_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
range.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
range_test.go Add int4range 2017-03-23 18:41:52 -05:00
record.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
record_test.go Add CompositeFields type 2020-05-11 17:21:21 -05:00
text.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
text_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
text_array_test.go Fix: Text array parsing disambiguates NULL and "NULL". 2020-11-07 07:41:49 -06:00
text_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08:00
tid.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
tid_test.go TID AssignTo string 2020-05-20 15:01:21 +02:00
time.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
time_test.go Accept nil *time.Time in Time.Set 2021-02-20 09:28:14 -06:00
timestamp.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
timestamp_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
timestamp_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
timestamp_test.go Fix Timestamptz.DecodeText with too short text 2020-11-03 08:31:05 -06:00
timestamptz.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
timestamptz_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
timestamptz_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
timestamptz_test.go Fix Timestamptz.DecodeText with too short text 2020-11-03 08:31:05 -06:00
tsrange.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
tsrange_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
tsrange_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
tstzrange.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
tstzrange_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
tstzrange_test.go Fix Timestamptz.DecodeText with too short text 2020-11-03 08:31:05 -06:00
typed_array.go.erb Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
typed_array_gen.sh Add tsrange array type. 2021-01-09 09:40:43 -06:00
typed_range.go.erb Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
typed_range_gen.sh Add pgtype.Numrange 2017-04-03 07:35:19 -05:00
unknown.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
uuid.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
uuid_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
uuid_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
uuid_test.go fixed marshaling and unmarshaling 2020-09-22 08:18:39 -05:00
varbit.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
varbit_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
varchar.go Allow types to specify preference format result and param formats 2020-05-10 14:05:16 -05:00
varchar_array.go Use Go 1.13 errors instead of xerrors 2021-03-25 09:08:27 -04:00
varchar_array_test.go Fix simple protocol empty array and original recursive empty array issue 2020-10-31 17:12:16 -05:00
xid.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
xid_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00

README.md

CI

pgtype

pgtype implements Go types for over 70 PostgreSQL types. pgtype is the type system underlying the https://github.com/jackc/pgx PostgreSQL driver. These types support the binary format for enhanced performance with pgx. They also support the database/sql Scan and Value interfaces and can be used with https://github.com/lib/pq.