PostgreSQL driver and toolkit for Go
 
 
 
Go to file
Jacob Powers de77c70f48 enable hstore extension before running tests 2020-06-10 09:05:14 -07: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 Update changelog for v1.3.0 2020-03-30 11:18:27 -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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
aclitem_array_test.go disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
aclitem_test.go disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
array.go Value, EncodeBinary, EncodeText, and MarshalJSON on T instead of *T 2019-08-27 20:46:16 -05:00
array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
array_type.go ArrayType requires element OID 2020-05-13 07:11:10 -05:00
array_type_test.go ArrayType requires element OID 2020-05-13 07:11: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
bool_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
bool_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
bytea_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
cidr_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05: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 CompositeType fields contain name and oid 2020-05-13 07:09:52 -05:00
composite_type_test.go CompositeType fields contain name and oid 2020-05-13 07:09:52 -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 Date.Set parses string 2020-03-09 10:40:40 -05:00
date_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
date_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
enum_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
float4_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
float4_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
float4_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
float8.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
float8_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
float8_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -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 Add pgxtype package for simpler type registration 2020-05-13 07:34:10 -05:00
go.sum disable test cases that require a binary sql snapshot 2020-06-10 08:27:56 -07:00
hstore.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
hstore_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
hstore_array_test.go Update dependencies 2020-03-30 11:30:37 -05:00
hstore_test.go Allow empty hstore keys 2019-05-20 16:26:58 -05:00
inet.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
inet_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
inet_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
inet_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
int2.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
int2_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
int2_array_test.go feat: add tests for less stricter numeric conversion 2019-11-26 17:31:13 +01:00
int2_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
int4.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
int4_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
int4_array_test.go Add remaining int array conversions 2019-11-27 20:23:43 -06:00
int4_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
int8_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
int8_array_test.go Add remaining int array conversions 2019-11-27 20:23:43 -06:00
int8_test.go Add JSON marshalling for Bool, Date, JSON/B, Timestamptz 2020-01-27 16:19:43 -08: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
interval_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -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_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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
macaddr_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
macaddr_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -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 Improve accuracy of numeric to float 2020-05-13 08:05:19 -05:00
numeric_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
numeric_array_test.go Import Fix for -0 numeric 2019-06-08 11:45:47 -05:00
numeric_test.go Improve accuracy of numeric to float 2020-05-13 08:05:19 -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 CompositeType implements TypeValue 2020-05-12 10:40:13 -05:00
pgtype_test.go Allow scanning to nil as no-op 2020-05-11 17:41:20 -05:00
pguint32.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
point.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
point_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
polygon.go Get implemented on T instead of *T 2020-02-19 10:48:09 -06:00
polygon_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
text_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05: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 Truncate nanoseconds in EncodeText for Timestamptz and Timestamp 2020-03-27 15:59:54 -05:00
timestamp_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
timestamp_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
timestamp_test.go Truncate nanoseconds in EncodeText for Timestamptz and Timestamp 2020-03-27 15:59:54 -05:00
timestamptz.go Truncate nanoseconds in EncodeText for Timestamptz and Timestamp 2020-03-27 15:59:54 -05:00
timestamptz_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
timestamptz_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
timestamptz_test.go Truncate nanoseconds in EncodeText for Timestamptz and Timestamp 2020-03-27 15:59:54 -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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
tstzrange_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
typed_array.go.erb Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
typed_array_gen.sh Add remaining int array conversions 2019-11-27 20:23:43 -06: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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
uuid_array.go Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
uuid_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -05:00
uuid_test.go Port fc020c24ac from pgx v3 2019-08-17 13:30:41 -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 Set will call Get on src if possible 2020-02-19 11:58:49 -06:00
varchar_array_test.go Splitting pgtype into own repo 2019-04-20 19:14:08 -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

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.