s.solodyagin
ff905c39e4
rename module
2024-05-07 09:50:32 +03:00
s.solodyagin
8418eab609
chore: change module name after fork
2024-01-15 15:26:58 +03:00
Eshton Robateau
20bf953a17
pull out changes into new public function
2023-12-09 11:20:14 -06:00
Eshton Robateau
12582a0fd4
bitsize largest option is 64
2023-12-09 11:20:14 -06:00
Eshton Robateau
9927e14bbf
remove dead line
2023-12-09 11:20:14 -06:00
Eshton Robateau
95b2f85e60
support scientific notation big floats
2023-12-09 11:20:14 -06:00
horpto
f4533dc906
optimize parseNumericString
2023-07-25 19:25:23 -05:00
Dan McGee
507a9e9ad3
Remove some now unused pgtype code
...
Most of this is in conversion, and I assume it became unused with some
of the v5 changes and refactors to a codec-based approach.
There are likely a few more cleanups to be made, but these ones seemed
easy and safe to start with.
2023-07-10 20:23:42 -05:00
Dan McGee
0328d314ea
Use bytes.Equal rather than bytes.Compare ==/!= 0
...
As recommended by go-staticcheck, but also might be a bit more efficient
for the compiler to implement, since we don't care about which slice of
bytes is greater than the other one.
2023-07-08 12:08:05 -05:00
Yumin Xia
766d2bba4f
add UnmarshalJSON for pgtype Numeric
2023-01-30 21:33:02 -06:00
Mark Chambers
c46d792c93
Numeric numberTextBytes() workaround...
...
This seems a bit of a hack. It fixes the problems demonstrated in my previous commit.
Maybe there's a cleaner way?
Associated: https://github.com/jackc/pgx/issues/1426
2023-01-14 08:42:42 -06: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
8cf6721d66
Better int64 / numeric compat and text fixes
2022-04-02 16:55:05 -05:00
Jack Christensen
84a3d91322
pgtype Float4 and Float8 fields include bit size
...
e.g. Instead of Float it is Float64. This matches the pattern set by the
database/sql types.
2022-03-05 09:20:03 -06: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
a74ebc9e51
pgtype.Numeric implements Float64Valuer
2022-02-05 08:39:53 -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
b9b5e35d0f
Convert numeric to Codec
2022-01-22 09:31:59 -06:00
Jack Christensen
44214b7854
Import to pgx main repo in pgtype subdir
2021-12-04 13:07:54 -06:00