Commit Graph

21 Commits (17cd36818ca4bab60ec8e9393c4ce3fa80f1c76e)

Author SHA1 Message Date
Oleksandr Redko 17cd36818c Update comments in generated code to align with Go standards 2024-12-21 20:21:32 +02:00
Mark Chambers 1ce3e0384a pgtype Int fix minimum error message.
Previously on the minimum condition the error would be:

  "is greater than maximum"

Also add encoding/json import into the .erb template as the import was
missing after running rake generate.
2022-12-17 09:10:02 -06:00
Jack Christensen fe3a4f3150 Standardize casing for NULL in error messages 2022-08-22 21:01:18 -05:00
Jack Christensen f14fb3d692 Replace interface{} with any 2022-04-09 09:12:55 -05:00
Jack Christensen 829babcea9 Better number to string handling
Avoid ambiguity of stringWrapper implementing Int64Scanner and
Float64Scanner.
2022-04-09 09:09:46 -05:00
Jack Christensen d723a4ab6f pgtype Int2, Int4, and Int8 fields include bit size
e.g. Instead of Int it is Int64. This matches the pattern set by the
database/sql types.
2022-03-05 09:17:31 -06:00
Jack Christensen d13f651810 Finish importing pgio as internal package 2022-02-21 14:35:20 -06:00
Jack Christensen 9c538cd4a9 Remove actualTarget argument 2022-02-21 09:30:01 -06:00
Jack Christensen 1f2f239d09 Renamed pgtype.ConnInfo to pgtype.Map 2022-02-21 09:13:09 -06:00
Jack Christensen 0306ce3a19 Fix scanning negative ints into Int64Scanner 2022-02-08 14:13:06 -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 ad79dccd99 Builtin types are automatically wrapped if necessary 2022-01-08 23:44:53 -06:00
Jack Christensen 8aaf235595 Standardize scanner and valuer for int types 2022-01-08 21:41:08 -06:00
Jack Christensen 313569db56 Remove useless allocations 2022-01-08 13:38:56 -06:00
Jack Christensen 4aff33603d Remove useless receivers 2022-01-08 13:37:23 -06:00
Jack Christensen dcaf102f8e Introduce PlanEncode 2022-01-05 08:59:21 -06:00
Jack Christensen 6a32f938f1 Extract codecDecodeToTextFormat 2022-01-03 21:23:29 -06:00
Jack Christensen f7c0c31e87 Extract DecodeValue helper 2022-01-03 21:20:52 -06:00
Jack Christensen 0c0e28a70a Convert int4 and int8 to new system
Note: purposely disabled some tests and composite support that needs to
be restored later in v5 development.
2022-01-01 17:26:39 -06:00
Jack Christensen d2cf33ed40 Add UnmarshalJSON to generated ints 2022-01-01 11:25:26 -06:00
Jack Christensen 1b353297d5 Prepare for generating int types 2022-01-01 11:11:31 -06:00