Package: @effect/sql-pg
Module: PgClient
PostgreSQL client service, extending SqlClient with JSON parameter fragments and LISTEN/NOTIFY helpers.
Signature
export interface PgClient extends Client.SqlClient {
readonly [TypeId]: TypeId
readonly config: PgClientConfig
readonly json: (_: unknown) => Fragment
readonly listen: (channel: string) => Stream.Stream<string, SqlError>
readonly notify: (channel: string, payload: string) => Effect.Effect<void, SqlError>
}
Since v4.0.0