MCPcopy Create free account
hub / github.com/Effect-TS/effect / constructor

Method constructor

packages/sql/pg/src/PgClient.ts:651–659  ·  view source on GitHub ↗
(
    runWithClient: <A>(
      f: (client: Pg.ClientBase, resume: (_: Effect.Effect<A, SqlError>) => void) => void
    ) => Effect.Effect<A, SqlError>,
    reserve: Effect.Effect<Pg.ClientBase, SqlError, Scope.Scope>
  )

Source from the content-addressed store, hash-verified

649
650class ConnectionImpl implements Connection {
651 constructor(
652 runWithClient: <A>(
653 f: (client: Pg.ClientBase, resume: (_: Effect.Effect<A, SqlError>) => void) => void
654 ) => Effect.Effect<A, SqlError>,
655 reserve: Effect.Effect<Pg.ClientBase, SqlError, Scope.Scope>
656 ) {
657 this.runWithClient = runWithClient
658 this.reserve = reserve
659 }
660
661 private readonly runWithClient: <A>(
662 f: (client: Pg.ClientBase, resume: (_: Effect.Effect<A, SqlError>) => void) => void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected