File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @effect/sql-pg " : patch
3+ ---
4+
5+ Readded stream as an optional parameter to PgClientConfig.
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import * as RcRef from "effect/RcRef"
2222import * as Redacted from "effect/Redacted"
2323import * as Scope from "effect/Scope"
2424import * as Stream from "effect/Stream"
25+ import type { Duplex } from "node:stream"
2526import type { ConnectionOptions } from "node:tls"
2627import * as Pg from "pg"
2728import * as PgConnString from "pg-connection-string"
@@ -77,6 +78,8 @@ export interface PgClientConfig {
7778 readonly username ?: string | undefined
7879 readonly password ?: Redacted . Redacted | undefined
7980
81+ readonly stream ?: ( ( ) => Duplex ) | undefined
82+
8083 readonly idleTimeout ?: Duration . DurationInput | undefined
8184 readonly connectTimeout ?: Duration . DurationInput | undefined
8285
@@ -120,6 +123,7 @@ export const make = (
120123 password : options . password ? Redacted . value ( options . password ) : undefined ,
121124 ssl : options . ssl ,
122125 port : options . port ,
126+ stream : options . stream ! ,
123127 connectionTimeoutMillis : options . connectTimeout
124128 ? Duration . toMillis ( options . connectTimeout )
125129 : undefined ,
You can’t perform that action at this time.
0 commit comments