t3-code-android-nightly/.repos/effect-smol/migration/annotations/effect__sql-pg__PgClient.yaml
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

16 lines
1.8 KiB
YAML

"@effect/sql-pg/PgClient#fromPool":
replacement: none
note: "Wrapping an existing node-pg Pool was removed with the native protocol client. Use PgClient.make or PgClient.layer with connection settings."
"@effect/sql-pg/PgClient#layerFromPool":
replacement: "PgClient.layer"
note: "Wrapping an existing node-pg Pool was removed. Provide connection settings to PgClient.layer instead."
"@effect/sql-pg/PgClient#PgClient":
replacement: "@effect/sql-pg/PgClient#PgClient"
note: "Retained; the service value is now a Context.Service. The listen method returns a scoped Effect acquiring a Queue.Dequeue<PgConnection.Notification, SqlError>; consume it with Queue operations or Stream.fromQueue and read each notification's payload. Connection failures after registration fail the queue with the original SqlError; scope closure interrupts consumers."
"@effect/sql-pg/PgClient#PgClientConfig":
include: true
replacement: "@effect/sql-pg/PgClient#PgClientConfig / PgPoolConfig"
note: "Use PgClientConfig for base settings and PgPoolConfig for make/layer; pool sizing, idle timeout, and connection TTL moved to PgPoolConfig. The types option takes a PgTypes.Registry rather than node-pg custom types. Timestamp and timestamptz results (including array elements) are Date values with millisecond precision; infinity, -infinity, and out-of-range values become invalid Dates. Numeric readers can use getTime() or register numeric codecs. Date parameters bind as timestamptz; use PgTypes.timestamp(value) to preserve UTC fields when writing a timestamp column instead of applying the session TimeZone."
"@effect/sql-pg/PgClient#PgClientFromPoolOptions":
replacement: none
note: "The node-pg Pool wrapper options were removed with fromPool. Use PgClient.PgPoolConfig with PgClient.make or PgClient.layer."