Commit Graph

18 Commits (f3defbc150fadbba3aa35e66bf7f2a492f59b556)

Author SHA1 Message Date
Jack Christensen f3defbc150 Rename pgtype.None to pgtype.Finite 2022-02-21 09:25:30 -06:00
Jack Christensen bcc0af3f56 Fix scan empty array into multi-dimension slice 2022-02-08 11:12:05 -06:00
Jack Christensen 7193e48923 Restore multi-dimensional slices
Move ArrayCode to use pgtype wrapper pattern as well
2022-02-08 10:07:40 -06:00
Jack Christensen 3a94113118 Add composite to arbitrary struct encoding and decoding 2022-02-05 14:24:34 -06:00
Jack Christensen 5ed95dcd1c Expose wrap functions on ConnInfo
- Remove rarely used ScanPlan.Scan arguments
- Plus other refactorings and fixes that fell out of this change.
- Plus rows Scan now handles checking for changed type.
2022-01-22 17:50:19 -06:00
Jack Christensen eb0a4c9626 Replace some old database/sql compatibility 2022-01-22 11:21:12 -06:00
Jack Christensen 740263c0d4 Convert UUID to Codec 2022-01-22 10:53:47 -06:00
Jack Christensen b9b5e35d0f Convert numeric to Codec 2022-01-22 09:31:59 -06:00
Jack Christensen 61b4fb7689 Convert time to Codec 2022-01-21 16:50:30 -06:00
Jack Christensen b10eb89fe4 Use wrapper to treat fmt.String as pgtype.TextValuer 2022-01-20 20:22:53 -06:00
Jack Christensen 97443487ce Convert macaddr to Codec 2022-01-20 20:07:09 -06:00
Jack Christensen 99fb8cf2f3 Convert timestamp and timestamptz to Codec 2022-01-18 21:49:38 -06:00
Jack Christensen 77e4b01553 Convert Interval to Codec 2022-01-15 18:46:28 -06:00
Jack Christensen a6863a7dd2 Convert Hstore to Codec 2022-01-15 17:47:37 -06:00
Jack Christensen 05598d4ca6 Convert inet and cidr to codec 2022-01-15 09:48:21 -06:00
Jack Christensen b57e0c419b Convert Date to Codec 2022-01-10 21:02:20 -06:00
Jack Christensen b26618ac95 Prevent try underlying type from acting on a value
This is necessary to prevent infinite recursion where a base type is
wrapped and then unwrapped.
2022-01-09 00:25:20 -06:00
Jack Christensen ad79dccd99 Builtin types are automatically wrapped if necessary 2022-01-08 23:44:53 -06:00