William Storey 1e485c1c3b Do not send IPv4 networks as IPv4-mapped IPv6
Previously if we provided a parameter that was an array of strings such
as []string{"0.0.0.0/8"}, we would encode this when sending to Postgres
as ::ffff:0.0.0.0/8. From what I can tell, this is because when parsing
the IP/network using net functions, we get a byte array that is 16 bytes
long, even if it is an IPv4 network. In Inet.EncodeBinary(), we look at
the length of the IP to determine what family the input is, and saw it
as IPv6 because of this.

We now always normalize IPv4 addresses using To4().
2022-06-07 18:34:04 -05:00
2020-12-28 13:02:34 -06:00
2021-08-07 08:23:02 -05:00
2021-08-26 15:42:47 -05:00
2020-02-19 10:48:09 -06:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-09-25 09:25:01 -05:00
2021-03-25 09:08:27 -04:00
2022-04-21 19:58:17 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 10:48:09 -06:00
2022-02-01 16:55:20 -06:00
2021-07-24 10:48:07 -05:00
2021-07-24 10:48:07 -05:00
2022-04-25 08:38:20 -05:00
2022-04-25 08:38:20 -05:00
2022-04-16 07:07:31 -05:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2020-02-19 10:48:09 -06:00
2022-01-14 17:16:04 -06:00
2022-01-14 17:16:04 -06:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2020-12-28 13:11:36 -06:00
2022-04-02 18:52:15 -05:00
2021-03-25 09:08:27 -04:00
2021-03-25 09:08:27 -04:00
2017-04-03 07:35:19 -05:00
2020-02-19 10:48:09 -06:00
2021-03-25 09:08:27 -04:00
2020-02-19 10:48:09 -06:00

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.

Description
PostgreSQL driver and toolkit for Go
Readme MIT 7.6 MiB
Languages
Go 98.6%
HTML 1.2%
Shell 0.2%