Skip to content

Commit

Permalink
the PgClient should accept tls options for ssl configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wewelll committed Sep 30, 2024
1 parent 16fe968 commit 0a0f7ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sql-pg/src/PgClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import * as Redacted from "effect/Redacted"
import type { Scope } from "effect/Scope"
import * as Stream from "effect/Stream"
import type * as NodeStream from "node:stream"
import type { ConnectionOptions } from "node:tls"
import postgres from "postgres"

/**
Expand Down Expand Up @@ -61,7 +62,7 @@ export interface PgClientConfig {
readonly host?: string | undefined
readonly port?: number | undefined
readonly path?: string | undefined
readonly ssl?: boolean | undefined
readonly ssl?: boolean | ConnectionOptions | undefined
readonly database?: string | undefined
readonly username?: string | undefined
readonly password?: Redacted.Redacted | undefined
Expand Down

0 comments on commit 0a0f7ca

Please sign in to comment.