PostgreSQL driver and toolkit for Go
 
 
 
Go to file
duohedron 8aa7211df5 Add tests to Polygon 2020-10-08 07:59:44 -05:00
ext Fix ext/gofrs-uuid AssignTo *uuid.UUID 2020-05-12 21:01:06 -05: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.5.0 2020-09-26 11:48:37 -05:00
LICENSE Added a license -- fixes #3 2019-09-20 10:14:48 -04:00
README.md Add basic README.md 2019-09-26 21:08:20 -05:00
aclitem.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
aclitem_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
aclitem_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
aclitem_test.go disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
array.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
array_type.go Fix ArrayType DecodeBinary empty array breaks future reads 2020-07-14 11:58:10 -05: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 Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
bool_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
bool_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
bool_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08:00
box.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06: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 Fix selecting empty array 2020-09-05 10:56:22 -05: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
bytea_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
bytea_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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 Fix selecting empty array 2020-09-05 10:56:22 -05:00
cidr_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
circle.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06: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 Refactor and add CompositeTextBuilder 2020-05-12 15:42:26 -05:00
composite_fields_test.go Add CompositeFields encoders 2020-05-12 11:55:24 -05:00
composite_type.go Fix encoding of a large composite data type 2020-07-21 23:52:20 -07:00
composite_type_test.go Better CompositeType and ArrayType Get implementation 2020-06-05 13:40:03 -05:00
convert.go EncodeRow is superceded by CompositeFields 2020-05-12 15:51:27 -05:00
custom_composite_test.go EncodeRow is superceded by CompositeFields 2020-05-12 15:51:27 -05:00
database_sql.go Use golang.org/x/xerrors 2019-04-20 17:43:44 -05:00
date.go Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
date_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
date_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
date_test.go Date.Set parses string 2020-03-09 10:40:40 -05:00
daterange.go Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06: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 Fix selecting empty array 2020-09-05 10:56:22 -05:00
enum_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
enum_type.go Expose EnumType directly instead of behind interface 2020-05-12 10:41:50 -05:00
enum_type_test.go Expose EnumType directly instead of behind interface 2020-05-12 10:41:50 -05:00
float4.go Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
float4_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
float4_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
float4_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
float8.go Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
float8_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
float8_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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 Fix tests with newest pgx 2020-06-06 09:55:14 -05:00
go.sum disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
hstore.go Fix hstore with empty string values 2020-06-06 10:26:34 -05:00
hstore_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
hstore_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
hstore_test.go Fix hstore with empty string values 2020-06-06 10:26:34 -05:00
inet.go Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
inet_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
inet_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
inet_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
int2.go support float64, float32 convert to int2, int4, int8 2020-09-29 13:10:38 +08:00
int2_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
int2_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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 support float64, float32 convert to int2, int4, int8 2020-09-29 13:10:38 +08:00
int4_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
int4_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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 Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06:00
int4range_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
int8.go support float64, float32 convert to int2, int4, int8 2020-09-29 13:10:38 +08:00
int8_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
int8_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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 Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06:00
int8range_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
interval.go Allow converting intervals with months and days to duration 2020-06-20 13:26:06 -05:00
interval_test.go Allow converting intervals with months and days to duration 2020-06-20 13:26:06 -05:00
json.go Allow types to specify preference format result and param formats 2020-05-10 14:05:16 -05:00
json_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08:00
jsonb.go Allow types to specify preference format result and param formats 2020-05-10 14:05:16 -05:00
jsonb_array.go Fix selecting empty array 2020-09-05 10:56:22 -05: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 Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
line_test.go Update dependencies 2020-03-30 11:30:37 -05:00
lseg.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
lseg_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
macaddr.go Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
macaddr_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
macaddr_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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 Add support for nullable types in Value.Get implementations 2020-06-17 17:04:43 +02:00
numeric_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
numeric_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
numeric_test.go Rename IsNaN to NaN 2020-06-11 21:35:32 -05:00
numrange.go Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06:00
numrange_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
oid.go Use golang.org/x/xerrors 2019-04-20 17:43:44 -05: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 Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
path_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
pgtype.go Text formatted values except bytea can be directly scanned to []byte 2020-09-05 11:13:53 -05:00
pgtype_test.go Text formatted values except bytea can be directly scanned to []byte 2020-09-05 11:13:53 -05:00
pguint32.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
point.go fixed marshaling and unmarshaling 2020-09-22 08:18:39 -05:00
point_test.go fixed marshaling and unmarshaling 2020-09-22 08:18:39 -05:00
polygon.go Add Undefined status to invalid Polygon 2020-10-08 07:59:44 -05:00
polygon_test.go Add tests to Polygon 2020-10-08 07:59:44 -05:00
qchar.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
qchar_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
range.go Use golang.org/x/xerrors 2019-04-20 17:43:44 -05:00
range_test.go Add int4range 2017-03-23 18:41:52 -05:00
record.go Add ScanDecoder and ScanValue to composite scanners. 2020-05-12 15:04:14 -05:00
record_test.go Add CompositeFields type 2020-05-11 17:21:21 -05:00
text.go Allow types to specify preference format result and param formats 2020-05-10 14:05:16 -05:00
text_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
text_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
text_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08:00
tid.go TID AssignTo string 2020-05-20 15:01:21 +02:00
tid_test.go TID AssignTo string 2020-05-20 15:01:21 +02:00
time.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
time_test.go Add PostgreSQL time type support 2019-12-19 21:35:35 -06:00
timestamp.go Support setting infinite timestamps 2020-10-08 07:58:57 -05:00
timestamp_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
timestamp_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
timestamp_test.go Support setting infinite timestamps 2020-10-08 07:58:57 -05:00
timestamptz.go Support setting infinite timestamps 2020-10-08 07:58:57 -05:00
timestamptz_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
timestamptz_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
timestamptz_test.go Support setting infinite timestamps 2020-10-08 07:58:57 -05:00
tsrange.go Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06:00
tsrange_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
tstzrange.go Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06:00
tstzrange_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
tstzrange_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
typed_array.go.erb Fix selecting empty array 2020-09-05 10:56:22 -05:00
typed_array_gen.sh Fix JSONBArray to have elements of JSONB 2020-09-04 18:41:34 -05:00
typed_range.go.erb Range types Set method supports its own type, string, and nil 2020-03-03 15:25:57 -06: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 fixed marshaling and unmarshaling 2020-09-22 08:18:39 -05:00
uuid_array.go Fix selecting empty array 2020-09-05 10:56:22 -05:00
uuid_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01:00
uuid_test.go fixed marshaling and unmarshaling 2020-09-22 08:18:39 -05:00
varbit.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06: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 Fix selecting empty array 2020-09-05 10:56:22 -05:00
varchar_array_test.go Add multidimensional array and slice support. 2020-08-07 13:10:32 +01: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

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.