github Effect-TS/effect @effect/sql-pg@4.2.0

Minor Changes

  • #10149 4fcd9ac - Add acquiring to Pool.stats and PgClient.poolStats to count in-flight acquisitions independently of waiting borrowers.

    Manually constructed Pool.Stats snapshots must include acquiring (use 0 when no acquisition is running).

  • #10149 a154d06 - Add SqlClient.batch, which returns each statement's rows as a typed tuple and runs as one atomic round trip on PostgreSQL (also via the new PgConnection.batch) and libSQL, or one statement at a time on drivers without the new optional Connection.executeBatch hook.

  • #11266 4c79af2 - When tracing is enabled, each PostgreSQL connection attempt gets a sql.connect client span with error.type on non-interrupt failures and db.response.status_code when the server supplies a valid SQLSTATE. Pooled attempts are root spans linked from the db.connect statement wait span when SpanPropagationEnabled is active.

  • #10149 7b42d45 - Add connectRetrySchedule to PgClient and PgPool to retry connection failures on checkout before any statement is sent.

Patch Changes

Thanks to these issue reporters

Don't miss a new effect release

NewReleases is sending notifications on new releases.