Repository navigation
@effect/sql-pg@4.2.0
Minor Changes
-
#10149
4fcd9ac- AddacquiringtoPool.statsandPgClient.poolStatsto count in-flight acquisitions independently of waiting borrowers.Manually constructed
Pool.Statssnapshots must includeacquiring(use0when no acquisition is running). -
#10149
a154d06- AddSqlClient.batch, which returns each statement's rows as a typed tuple and runs as one atomic round trip on PostgreSQL (also via the newPgConnection.batch) and libSQL, or one statement at a time on drivers without the new optionalConnection.executeBatchhook. -
#11266
4c79af2- When tracing is enabled, each PostgreSQL connection attempt gets asql.connectclient span witherror.typeon non-interrupt failures anddb.response.status_codewhen the server supplies a valid SQLSTATE. Pooled attempts are root spans linked from thedb.connectstatement wait span whenSpanPropagationEnabledis active. -
#10149
7b42d45- AddconnectRetryScheduletoPgClientandPgPoolto retry connection failures on checkout before any statement is sent.
Patch Changes
-
#11003
ab920a9- AllowPgClientto bind decoded intervals as query parameters, individually or in arrays, without aPgTypes.intervalwrapper. -
#11073
cdba62c- PostgreSQL now infers the array type of plain string array parameters, souuid_column = ANY(${ids})works withoutPgTypes.array. Where the query gives no type, such asunnest(${ids}), add a cast like::text[]. -
#11208
ed6a8fa- Reject queued and subsequent queries on a PostgreSQL connection withConnectionErrorafter an unconfirmed cancellation, including queries on a heldPgPool.getcheckout. These queries fail before writing to the socket, preventing a late cancellation from interrupting another statement on that connection. -
#11255
3833c62- SQL clientspanAttributesnow override connection defaults in query spans and derived span names. Unspecified attributes keep their defaults, and statement attributes such asdb.query.textstill reflect the executed query. -
Updated dependencies [
ad548eb,45cbe18,d65c927,d0c4ccb,ddc5b58,28232de,c89bd42,33352ec,981d2b4,8dfec63,0aec37c,4d6ba15,c97eaa9,ac4eb36,201e714,d056634,855acf5,3674d15,1bd72dd,27b090b,546da96,e9d5f83,21b678d,36a5e5f,e8d9fae,371aa23,9c88614,6807aac,65199a4,df4258d,1a1cb48,c1c81fa,b65551a,945fe8f,dc1ebd4,d055e9f,96596ea,f4d1d82,aa0be5a,eb38445,8245e5a,7c99faa,e29869a,2f31adb,847e605,a2d31c4,32ee528,7dc82f5,6c6ea9f,b1d15a7,d211297,50c5327,04a5000,3b50fb3,3260f0d,e4541d4,f6075de,a366aea,12c9c65,4fcd9ac,3727adf,9e39a91,fff554d,6da66ca,9a8167f,df99cfb,4b77125,83ea661,e307b4b,9fc56a0,4641c9c,358dcaf,0927cc2,684c691,efedd8f,c1bbe62,3504edd,a154d06,f22c052,cb78062,d1667dc,603e1ef,7f2cc86,30a8fbf,6c6ea9f,e0a1505,b42d21d,5fea4eb,fe45cb3,f09b12c,4872d93,faa3783,855acf5,e4a4959,353f3a7,3b4f9aa,6e2d8a4,cc0db8b,9fa1911,d3fc293,be64268,88f3dc2,124881f,0498d4d,0a65a4d,d08c75a,6c6ea9f,458dad1,3fae6ad,ddd3e73,24e1b04]:- effect@4.2.0
Thanks to these issue reporters
- @RhysSullivan for #10951
- @artile for #10996
- @heddendorp for #11159
- @heyimcarlos for #11235