Commit Graph

3841 Commits (0bc29e3000598a6b3d39808cb168e34700c9b63e)

Author SHA1 Message Date
Jack Christensen 0bc29e3000
Merge pull request #2225 from logicbomb/improve-error-message
Include the field name in error messages when scanning structs
2025-01-18 10:41:13 -06:00
Jack Christensen 9cce05944a
Merge pull request #2216 from pconstantinou/master
Timestamp incorrectly adds 'Z' when serializing from JSON to indicate GMT, fixes bug #2215
2025-01-18 10:17:43 -06:00
Jason Turim 9c0ad690a9 Include the field name in error messages when scanning structs 2025-01-11 14:31:24 -05:00
Jack Christensen 2c1b1c389a
Merge pull request #2200 from zenkovev/flush_request_in_pipeline
add flush request in pipeline
2025-01-11 11:15:36 -06:00
zenkovev c96a55f8c0 private const for pipelineRequestType 2025-01-11 19:54:18 +03:00
Jack Christensen e87760682f Update oldest supported Go version to 1.22 2025-01-11 07:49:50 -06:00
Jack Christensen f681632c68 Drop PG 12 support and add PG 17 to CI 2025-01-11 07:49:26 -06:00
Phil Constantinou 3c640a44b6 Making the tests a little cleaner and clear 2025-01-06 09:24:55 -08:00
zenkovev de3f868c1d pipeline queue for client requests 2025-01-06 13:54:48 +03:00
Phil Constantinou 5424d3c873 Return error and make sure they are unit tested 2025-01-05 19:45:45 -08:00
Phil Constantinou 42d3d00734 Parse as a UTC time 2025-01-05 19:19:17 -08:00
Phil Constantinou cdc672cf3f Make JSON output confirm to ISO8601 timestamp without a timezone 2025-01-05 13:05:51 -08:00
Phil Constantinou 52e2858629 Added unit test and fixed typo 2025-01-02 13:36:33 -08:00
Phil Constantinou e352784fed Add Z only if needed. 2025-01-02 12:50:29 -08:00
Jack Christensen c2175fe46e
Merge pull request #2213 from moukoublen/fix_2204
Fix #2204
2024-12-30 20:35:41 -06:00
Jack Christensen 659823f8f3 Add link to github.com/amirsalarsafaei/sqlc-pgx-monitoring
fixes https://github.com/jackc/pgx/issues/2212
2024-12-30 20:27:10 -06:00
Jack Christensen ca04098fab
Merge pull request #2136 from ninedraft/optimize-sanitize
Reduce SQL sanitizer allocations
2024-12-30 20:24:13 -06:00
Jack Christensen 4ff0a454e0
Merge pull request #2211 from EinoPlasma/master
Fixes for Method Comment and Typo in Test Function Name
2024-12-30 20:12:22 -06:00
Jack Christensen 00b86ca3db
Merge pull request #2208 from vamshiaruru/feat/expose_empty_acquire_wait_time_from_puddle
Expose puddle.Pool's EmptyAcquireWaitTime in pgxpool's Stats
2024-12-30 20:03:51 -06:00
Kostas Stamatakis 61a0227241
simplify test 2024-12-30 23:15:46 +02:00
Kostas Stamatakis 2190a8e0d1
cleanup and add test for json codec 2024-12-30 23:09:19 +02:00
Kostas Stamatakis 6e9fa42fef
fix #2204 2024-12-30 22:54:42 +02:00
EinoPlasma 6d9e6a726e Fix typo in test function name 2024-12-29 21:03:38 +08:00
EinoPlasma 02e387ea64 Fix method comment in PasswordMessage 2024-12-29 20:59:24 +08:00
merlin e452f80b1d
TestErrNoRows: remove bad test case 2024-12-28 13:39:01 +02:00
merlin da0315d1a4
optimisations of quote functions by @sean- 2024-12-28 13:31:09 +02:00
merlin 120c89fe0d
fix preallocations of quoted string 2024-12-28 13:31:09 +02:00
merlin 057937db27
add prefix to quoters tests 2024-12-28 13:31:09 +02:00
merlin 47cbd8edb8
drop too large values from memory pools 2024-12-28 13:31:09 +02:00
merlin 90a77b13b2
add docs to sanitize tests 2024-12-28 13:31:08 +02:00
merlin 59d6aa87b9
rework QuoteString and QuoteBytes as append-style 2024-12-28 13:31:08 +02:00
merlin 39ffc8b7a4
add lexer and query pools
use lexer pool
2024-12-28 13:31:08 +02:00
merlin c4c1076d28
add FuzzQuoteString and FuzzQuoteBytes 2024-12-28 13:31:08 +02:00
merlin 4293b25262
decrease number of samples in go benchmark 2024-12-28 13:31:08 +02:00
merlin ea1e13a660
quoteString 2024-12-28 13:31:08 +02:00
merlin 58d4c0c94f
quoteBytes
check new quoteBytes
2024-12-28 13:31:08 +02:00
merlin 1752f7b4c1
docs 2024-12-28 13:31:08 +02:00
merlin ee718a110d
append AvailableBuffer 2024-12-28 13:31:08 +02:00
merlin 546ad2f4e2
shared bytestring 2024-12-28 13:31:08 +02:00
merlin efc2c9ff44
buf pool 2024-12-28 13:31:08 +02:00
merlin aabed18db8
add benchmark tool
fix benchmmark script

fix benchmark script
2024-12-28 13:31:08 +02:00
merlin afa974fb05
base case
make benchmark more extensive

add quote to string

add BenchmarkSanitizeSQL
2024-12-28 13:31:08 +02:00
Vamshi Aruru 12b37f3218 Expose puddle.Pool's EmptyAcquireWaitTime in pgxpool's Stats
Addresses: https://github.com/jackc/pgx/issues/2205
2024-12-26 13:46:49 +05:30
Jack Christensen bcf3fbd780
Merge pull request #2206 from alexandear/refactor-impossible-cond
Refactor Conn.LoadTypes by removing redundant check
2024-12-24 11:14:17 -06:00
Jack Christensen f7c3d190ad
Merge pull request #2203 from martinyonatann/chore/check-array-and-remove-imposible-condition
check array just using `len` and remove `imposible condition`
2024-12-24 11:10:45 -06:00
Jack Christensen 473a241b96
Merge pull request #2202 from martinyonatann/chore/remove-unused-parameter
remove unused func and parameter
2024-12-24 09:32:07 -06:00
Oleksandr Redko 311f72afdc Refactor Conn.LoadTypes by removing redundant check 2024-12-24 12:58:15 +02:00
martinpasaribu 877111ceeb
check array just using len and remove imposible condition 2024-12-22 23:57:28 +07:00
martinpasaribu dc3aea06b5
remove unused func and parameter 2024-12-22 23:48:08 +07:00
Jack Christensen e5d321f920
Merge pull request #2197 from alexandear/fix-generated-hdr
Update comments in generated code to align with Go standards
2024-12-21 12:40:23 -06:00