Maxim Ivanov 5f0d5f4255 Remove pgtype.Row(), introduce Composite.Scan()
pgtype.Row() was optimized for a single line use
without much ceremony at a cost of OID registration,
which is cumbersome. In practice it so much incovnenience
to create new Composite just before making a query.

So now there is just a Composite type and 2 helper methods:

- SetFields sets composite fields to values passed. This assignment
  fails if types passed are not assignable to Values pgtype is
  made of.

- Scan acts exactly like query.Scan, but for a composite value. Passed
  values are set to values from SQL composite.
2020-04-27 00:48:02 +01:00
2020-04-02 14:01:16 -05:00
2020-01-24 14:58:59 -06:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 11:58:49 -06:00
2020-03-30 11:18:27 -05:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 17:43:44 -05:00
2020-03-09 10:40:40 -05:00
2020-03-09 10:40:40 -05:00
2019-04-20 19:14:08 -05:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 11:58:49 -06:00
2020-03-30 11:30:37 -05:00
2020-03-30 11:30:37 -05:00
2019-05-20 16:26:58 -05:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 11:58:49 -06:00
2020-02-19 11:58:49 -06:00
2020-02-19 11:58:49 -06:00
2020-02-19 11:58:49 -06:00
2020-03-30 11:30:37 -05:00
2020-02-19 10:48:09 -06:00
2019-09-20 10:14:48 -04:00
2020-03-30 11:30:37 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-06-08 11:45:47 -05:00
2019-04-20 17:43:44 -05:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 11:58:49 -06:00
2017-03-23 18:41:52 -05:00
2019-04-20 17:43:44 -05:00
2019-09-26 21:08:20 -05:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2019-12-19 21:35:35 -06:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2017-04-03 07:35:19 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 11:58:49 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00
2020-02-19 10:48:09 -06:00
2019-04-20 19:14:08 -05:00
2020-02-19 10:48:09 -06:00

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.5 MiB
Languages
Go 98.6%
HTML 1.2%
Shell 0.2%